Dear R-help, I have df.1001 as a data frame with rows & columns of values.
I also have other data frames named similarly, i.e., df.*. I used DFName from: DFName <- ls(pattern = glob2rx("df.*"))[1] & would like to pass on DFName to another function, like: length(DFName[, 1]) however, when I run: > length(DFName[, 1]) Error in DFName[, 1] : incorrect number of dimensions and length(df.1001[, 1]) [1] 104 do not provide the same expected answer. How can I successfully pass the data frame name of df.1001 as a variable named DFName in a function? Thanks, Alan ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.