-
TIL:
nest()andnest_by()do not give you the same kind of nested tibble (thanks @erictleung!) I was trying to usemap()withmutate()on a list column in a nested tibble and I couldn't understand why it was throwing an error. #tidyverse #rstats -
@erictleung This wont work on a nested tibble made with
nest_by(), since it is a rowwise tibble: nested_penguins %>% mutate(model = map(data, lm(x ~ y, data=data))