Motivation There are some things that I always forget how to do in R. I have decided to add some of those code snippets to this blog so I that I can look them up when I need them. Droping variables using a vector of names I often have a pre-specified vector of variables names that I use frequently and sometimes I want to drop those variables. The trick is to use one_of around the vector with variable names.

Emma Vestesson

I love all things R and data. I’m a senior data analyst at the Health Foundation and a part-time PhD at UCL Great Ormond Street Institute of Child Health. I am also an RStudio Certified Instructor in the tidyverse. This is where I share some of my coding projects - some more useful than others!

Senior Data analyst

London