Hi again Rui,

I tested your script as you wrote it with my examples, it works perfectly!
It seems to be exactly what I'm trying to do.
I just have a question about your function na.fill.
When I'm trying to apply your script to my data, it doesn't work. I think
it's because in your example, you already open the data.frames in your list.
But in my case, these data.frames are in different files (as I have 70
files). I'm trying to apply your function na.fill on a list.files.
That's why I think it tells me: "Error dans x$data : $ operator is invalid
for atomic vectors"
I tried like this: x[,2] but it doesn't work too: "incorrect number of
dimensions".
How can I do exactly the same for na.fill, but by calling a file (according
to the name of the file) and not directly a data.frame like you (s1,s2,s3)? 

--
View this message in context: 
http://r.789695.n4.nabble.com/take-data-from-a-file-to-another-according-to-their-correlation-coefficient-tp4580054p4583404.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