[R] take data from a file to another according to their correlation coefficient
Rui Barradas
ruipbarradas at sapo.pt
Tue Apr 24 17:06:33 CEST 2012
Hello,
Try putting the function call in a lapply, along
lst <- lapply(list.files(path, pattern), read.table, header=TRUE,
stringsAsFactors=FALSE)
You don't stricktly need a list for na.fill, but you do need two
data.frames, not filenames.
The list is used by the other functions.
(It's also a good idea to have related objects within the same data
structure.)
Rui Barradas
--
View this message in context: http://r.789695.n4.nabble.com/take-data-from-a-file-to-another-according-to-their-correlation-coefficient-tp4580054p4583785.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list