Recently, I adapted slides from one of my talks into a blog post format, with each slide’s narration transcribed below it. In my experience, people don’t usually post slides…
A more detailed explanation of some of the code that makes the greenT app work.
An introduction to a Shiny app I built to show friends the inner workings of my brain–and some musings on my experience learning Shiny this year.
I love the magrittr/dplyr pipe: %>%. But it’s meant to work with tidyverse functions, and it doesn’t always work well with base R functions that take a single data frame…
Some of my thoughts about R and the R community after attending the 2020 rstudio::conf in San Francisco.
In which I learn how to make case_when() behave like a true if/else, including the else part. What happens when you only want to assign particular outcomes to a few cases…
A trick I sometimes use to load a whole bunch of packages for every script in a project, while saving myself some typing. (Preview image from…
In which I discover dplyr’s case_when() function, a vectorized version of ifelse().
When you’re using a for loop to fill up a list, sometimes it’s a good idea to initialize the list ahead of time, with the right number of elements but with no data. But…
Making a frequency table with proportions instead of counts. Preview image from https://twitter.com/lyric_rep/status/1010594530435846144.
A trick to show the output of an R expression when it wouldn’t otherwise print to the console.
A brief introduction to the with() function
How to rename individual columns in a data frame, based on the previous names and without using previous names.
Why is negating %in% such a pain?
%in%
I wrote a function to summarize how many NA’s are in each column of a data frame. Preview image by Allison Horst, https://github.com/allisonhorst.