Thanks for your help, I still have a little problem with this function because I don't have the same number of line in my two datarame so when I try to apply the dataframe function, I obtain this response ; that I have a different number of lines.
Erreur dans data.frame(train, test[rowz, ]) : les arguments impliquent des nombres de lignes différents : 50327, 66592 Do you know how I could solve this problem ? Thanks, Céline -- View this message in context: http://r.789695.n4.nabble.com/Aggregate-or-extract-function-tp4013673p4015263.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.