How do I remove the attributes of the following columns of data.frames on a nested list in R on the fly?
List of 1 $ 0021400001:List of 19 $ GameSumma
You could write a function that works on one entry in the list, e.g.
one_entry <- function(x) { for (i in length(x)) attr(x[[i]], "names") <- NULL return(x) }
and then run lapply:
lapply
lapply(my_list, FUN=one_entry)
where mylist is the data structure in the question.
mylist