3 ms·
But base r already has split() which does the same thing, turns a dataframe into a list of dataframe divided by values of a column. With the base r pipe operato
by kuhewa 4y ago
But base r already has split() which does the same thing, turns a dataframe into a list of dataframe divided by values of a column. With the base r pipe operator and base functions like subset, aggregate, transform, split, you can basically replicate that convention while loading exactly no tidyverse packages. You can also use group_by(data, column) without a pipe if wanting to smuggle in a specific dplyr function.