I've only recently started coding and am totally stuck!
I have a large list (Large.List.Df) that consists of 50+ arrays (each with 1000+ rows and 5+ columns). These arrays are all listed in double square brackets (e.g. [[A]] ) in a drop down menu when you open the dataframe Large.List.Df
I would like to use group_by() on name.of.column in each of the 50+ arrays so that I can mutate(name.of.new.column = 1:n()). I have used this combination of group_by(name.of.column) and mutate(name.of.new.column = 1:n()) on a normal dataframe (so just one element of the large list) and it works perfectly. But, if I run:
NewDf <- Large.List.Df %>% group_by(name.of.column) %>% mutate(name.of.new.column = 1:n())
I get the following error message:
Error in UseMethod("group_by_") :
no applicable method for 'group_by_' applied to an object of class "list"
I hope this all makes sense. I would be very grateful for any suggestions, advice, help, etc!