Publications by Posts | Joshua Cook

‘mustashe’

21.03.2020

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 the code chunk is run. ‘mustashe’ can be installed from CRAN or fr...

5436 sym R (1803 sym/14 pcs)

‘mustashe’ Explained

22.03.2020

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 the code chunk is run. This post explains how ‘mustashe’ works. Se...

4504 sym R (2468 sym/11 pcs)

‘mustashe’ Explained

22.03.2020

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 the code chunk is run. This post explains how ‘mustashe’ works. Se...

4504 sym R (2468 sym/11 pcs)

Caching in R

04.04.2020

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, multiple packages in R to help with this process, so I’ve...

8126 sym R (1703 sym/16 pcs)

Caching in R

04.04.2020

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, multiple packages in R to help with this process, so I’ve...

8126 sym R (1703 sym/16 pcs)

Riddler: Can You Solve The Chess Mystery?

25.04.2020

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 a graph of the possible paths for the knight. The simulations wer...

5022 sym R (11365 sym/16 pcs) 14 img

Riddler: Can You Flip Your Way To Freedom?

02.05.2020

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 must once again recreate the crystal using the data ...

3354 sym R (3473 sym/13 pcs) 8 img

Riddler: Can You Tell When The Snow Started?

09.05.2020

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 direction, also down the middle of the...

3790 sym R (3353 sym/13 pcs) 8 img

Riddler: Can You Solve This Rather Pedestrian Puzzle?

17.05.2020

FiveThirtyEight’s Riddler Express link Riddler City is a large circular metropolis, with countless square city blocks that each have a side length of 1 km. A small section of the city, composed of 36 blocks, is shown in the diagram below: At the very center of the city lies Riddler City Hall. Its many employees all walk to and from work, and...

7641 sym R (4276 sym/15 pcs) 28 img

Riddler: Can You Roll The Perfect Bowl?

31.05.2020

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 Nick�...

6137 sym R (7219 sym/9 pcs) 10 img