Articles by Posts | Joshua Cook

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...]

R Markdown animated GitHub corner

August 16, 2019 | Posts | Joshua Cook

This is an incredibly easy way to spice up any R Markdown file. It adds an animated link to GitHub in the top corner of the HTML output, just like you see at the top of this page. Mouse over the icon to make it wave. All thanks and praise ... [Read more...]

Rmarkdown animated GitHub corner

August 16, 2019 | Posts | Joshua Cook

This is an incredibly easy way to spice up any Rmarkdown file. It adds an animated link to GitHub in the top corner of the HTML output, just like you see at the top of this page. Mouse over the icon to make it wave. All thanks and praise should ... [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)