Articles by Posts | Joshua Cook

Riddler: Can You Just Keep Turning?

June 27, 2020 | Posts | Joshua Cook

FiveThirtyEight’s Riddler Express link In Riddler City, the city streets follow a grid layout, running north-south and east-west. You’re driving north when you decide to play a little game. Every time you reach an intersection, you randomly turn left or right, each with a 50 percent chance. After driving ...
[Read more...]

Riddler: Can You Track The Delirious Ducks?

June 13, 2020 | Posts | Joshua Cook

FiveThirtyEight’s Riddler Classic link After a long night of frivolous quackery, two delirious ducks are having a difficult time finding each other in their pond. The pond happens to contain a 3×3 grid of rocks. Every minute, each duck randomly swims, independently of the other duck, from one rock to ...
[Read more...]

Riddler: Can You Roll The Perfect Bowl?

May 31, 2020 | Posts | Joshua Cook

FiveThirtyEight’s Riddler Express link At the recent World Indoor Bowls Championships in Great Yarmouth, England, one of the rolls by Nick Brett went viral. Here it is in all its glory: 12/10 on the mindblowing scale ???? #SCtop10(via @BBCSport) pic.twitter.com/6pN6ybzVel — SportsCenter (@SportsCenter) January 23, 2020 In order for ... [Read more...]

Riddler: Can You Tell When The Snow Started?

May 9, 2020 | Posts | Joshua Cook

FiveThirtyEight’s Riddler Express ( Link to the original article.) From Patrick Mayor comes a question about something we’re doing these days to keep ourselves and others safe: social distancing. You’re walking along the middle of a wide sidewalk when you see someone walking toward you from the other ...
[Read more...]

Riddler: Can You Flip Your Way To Freedom?

May 2, 2020 | Posts | Joshua Cook

FiveThirtyEight’s Riddler Express Dakota Jones is back in action. In her quest to locate the Temple of Diametra, she has found another highly symmetric crystal. However, nefarious agents have again gotten wind of her plans, and now Dakota and the crystal are nowhere to be found. And so, you ... [Read more...]

Riddler: Can You Solve The Chess Mystery?

April 25, 2020 | Posts | Joshua Cook

Summary The Riddler is a weekly puzzle provided by FiveThirtyEight. This week’s puzzle involves finding the path used by the knight to kill the opposing queen in a game of chess. Below, I show how I solved puzzle using two methods: a siumulation of the chessboard and by building ...
[Read more...]

Caching in R

April 4, 2020 | Posts | Joshua Cook

Introduction Caching intermediate objects in R can be an efficient way to avoid re-evaluating long-running computations. The general process is always the same: run the chunk of code once, store the output to disk, and load it up the next time the same chunk is run. There are, of course, ... [Read more...]

Caching in R

April 4, 2020 | Posts | Joshua Cook

Introduction Caching intermediate objects in R can be an efficient way to avoid re-evaluating long-running computations. The general process is always the same: run the chunk of code once, store the output to disk, and load it up the next time the same chunk is run. There are, of course, ... [Read more...]

‘mustashe’ Explained

March 22, 2020 | Posts | Joshua Cook

The purpose of the ‘mustashe’ R package is to save objects that result from some computation, then load the object from file the next time the computation is performed. In other words, the first time a chunk of code is evaluated, the output can be stashed for the next time ... [Read more...]

‘mustashe’ Explained

March 22, 2020 | Posts | Joshua Cook

The purpose of the ‘mustashe’ R package is to save objects that result from some computation, then load the object from file the next time the computation is performed. In other words, the first time a chunk of code is evaluated, the output can be stashed for the next time ... [Read more...]

‘mustashe’

March 21, 2020 | Posts | Joshua Cook

The purpose of the ‘mustashe’ R package is to save objects that result from some computation, then load the object from file the next time the computation is performed. In other words, the first time a chunk of code is evaluated, the output can be stashed for the next time ... [Read more...]

‘mustashe’

March 21, 2020 | Posts | Joshua Cook

The purpose of the ‘mustashe’ R package is to save objects that result from some computation, then load the object from file the next time the computation is performed. In other words, the first time a chunk of code is evaluated, the output can be stashed for the next time ... [Read more...]

OncoTree Tidygraph

March 16, 2020 | Posts | Joshua Cook

Introduction Cancers are often first classified by their tissue of origin, but there are several types of cancer for each tissue. Further, each of these can have several subdivisions. For example, head and neck cancers can be further divided into seven cancers, including head and neck squamous cell carcinoma (HNSC). ...
[Read more...]

OncoTree Tidygraph

March 16, 2020 | Posts | Joshua Cook

Introduction Cancers are often first classified by their tissue of origin, but there are several types of cancer for each tissue. Further, each of these can have several subdivisions. For example, head and neck cancers can be further divided into seven cancers, including head and neck squamous cell carcinoma (HNSC). ...
[Read more...]

GitHub Actions for Compiling and Converting LaTeX

March 7, 2020 | Posts | Joshua Cook

Introduction I am preparing a manuscript for submission to a scientific journal and decided to compose it in $\LaTeX$ using Overleaf. While Overleaf, an online $\LaTeX$ editor, has many collaboration features (including live, multi-person editing and review) many people, namely my PI, dislikes both $\LaTeX$ nor Overleaf, and instead prefers ...
[Read more...]

GitHub Actions for Compiling and Converting LaTeX

March 7, 2020 | Posts | Joshua Cook

Introduction I am preparing a manuscript for submission to a scientific journal and decided to compose it in $\LaTeX$ using Overleaf. While Overleaf, an online $\LaTeX$ editor, has many collaboration features (including live, multi-person editing and review) many people, namely my PI, dislikes both $\LaTeX$ nor Overleaf, and instead prefers ...
[Read more...]

Lithops

February 16, 2020 | Posts | Joshua Cook

Lithops is one of my favorite type (specifically, genus) of plant. I find them charming and fascinating. For this reason, I own several adult specimens and am growing several species of Lithops from seeds: [Lithops from seed]() and [Lithops from seed (II)](). Below is some information on these interesting plants ... [Read more...]
1 2 3

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)