Hello. I am interested in whether anyone has tried porting the S-Plus function merge.data.frame() to R. I copied and sourced the S-Plus merge.data.frame() function definition but got the following error upon trying to merge two dataframes Error: invalid number of copies in "rep" The same function call in S-Plus does not yield this error. (Each of the two files has about 30,000 rows. One file has two columns and the other, 61) I am running R version 0.65.1 under Solaris2.6. I plan on forging ahead to see if I can identify the cause, but I thought I would check with this list to see if anybody else had encountered this. . Thanks. David M. Potter Mathematical & Statistical Sciences Pfizer Central Research -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Tue, 9 Nov 1999, Potter, David M wrote:> Hello. I am interested in whether anyone has tried porting the > S-Plus function merge.data.frame() to R. I copied and sourced > the S-Plus merge.data.frame() function definition but got the following > error > upon trying to merge two dataframes > > Error: invalid number of copies in "rep"It might be easier to port the merge.data.frame function from the Statlib S archive, which is less likely to have been optimised for S-PLUS. The other advantage is that it would have a better chance of being legal to distribute the resulting code. Thomas Lumley Assistant Professor, Biostatistics University of Washington, Seattle -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._