I'm trying to subset a large data frame from a very large data frame, using
data.new <- subset(data, select = vector)
where vector is a character string containing the column names I'm trying to isolate. When I do this I get
Error in `[.data.frame`(x, r, vars, drop = drop) :
undefined columns selected
Is there a way to identify which specific column name in the vector is undefined? Through trial and error I've narrowed it down to about 400, but that still doesn't help.