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.

______________________________________________
R-help@r-project.org mailing list
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.

Reply via email to