nplyr
nplyr copied to clipboard
It does not actually works with data frames nested into a column-list
tibble(
id = 1:5,
location = list(
data.frame(id = 1, county = "Sussex"),
data.frame(id = 2, county = "Surrey"),
data.frame(id = 3, county = "Kent"),
data.frame(id = 4, county = "Essex"),
data.frame(id = 5, county = "Sussex")
)
) -> my_tibble
my_tibble %>%
nest_filter(location, county == "Sussex")
Error: argument `.nest_data` msut be of class "grouped_df", "tbl_df", "tbl", "data.frame".