# R

## Riddler: Can You Solve This Rather Pedestrian Puzzle?

I used graphs to solve this weeks Riddler to find the difference in shortest paths resulting from a change to the sidewalk layout of Riddler City.

## Riddler: Can You Tell When The Snow Started?

This puzzle was to find the shortest paths of two indivduals sharing a sidewalk while obsering the COVID-19 6-foot social distancing guideline. I simulated the scenario in R and plotted the travels of the individuals using 'gganimate'.

## Riddler: Can You Flip Your Way To Freedom?

For this week's Riddler, we were asked to solve the 3D structure given a series of cross-sections. I used R to reconstruct this structure and presented it as an interactive plot.

## Riddler: Can You Solve The Chess Mystery?

This week’s Riddler involves finding the path used by the knight to kill the opposing queen in a game of chess. 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.

## Caching in R

A brief look at the systems for caching in R.

## mustashe

A simple system for saving and loading objects in R. Long running computations can be stashed after the first run and then reloaded the next time. Dependencies can be added to ensure that a computation is re-run if any of its dependencies or inputs have changed.

## 'mustashe' Explained

An explanation of the caching system employed in 'mustashe'.

## 'mustashe'

A simple system for saving and loading objects in R. Long running computations can be stashed after the first run and then reloaded the next time. Dependencies can be added to ensure that a computation is re-run if any of its dependencies or inputs have changed.

## OncoTree Tidygraph

Transforming the MSK OncoTree into a tidygraph object in R.

## Setting axes to integer values in 'ggplot2'

A seemingly simple task took quite a bit of research and experimentation to figure out.