%$%: upping your pipe game

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 column as input. Here, I use data about my friends’ pets to explain how a different magrittr pipe, %$%, solves that problem.
R
Author
Affiliation

Yale University

Published

February 10, 2020