this is presumably a simple question, but I have been unable to find an answer. I want to delete a column of a dataframe that is inside a list.
x1<- rnorm(1
Instead of
l1[1] <- data.frame(l1[1])[,-1]
use
l1[[1]] <- data.frame(l1[1])[,-1]