I'm not sure if this solves the problem. The NA cases are spread into de cases. This solution always returns the NA cases for the last variables as the last cases.
It's not keeping the same row.names they have in data1. What I want to do it return exactly the same data1 (cases in the same order), but binded to it, the new variable, presenting NA where there is no value for it. Thanks! -- View this message in context: http://r.789695.n4.nabble.com/Merge-dataframes-tp3882222p3883322.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.