I'm trying to filter through a list of 100 lists with four columns of data to pull out individual columns and operate on them.
The columns are: Date/Time, Measurement 1, Measurement 2, Identity Variable
filepull <- list of 100 lists
column_name <- "foo"
meanoflist <- NULL
for (i in 1:100) {
holder_variable<-filepull[[i]]
meanoflist[i]<-mean(na.omit(holder_variable$column_name))
}
holder_variable$"foo" gives me what I need, but holder_variable$column_name gives me NULL. What gives?
Thx for the help!