[R] merge in function

From: qian z <qianpland_at_yahoo.com>
Date: Thu, 6 Dec 2007 09:27:37 -0800 (PST)


I used merge() in a function, but it doesn't return correct data frame.    

  add.name <- function(data, x)    

  {    

...
...
   

  newfile <- merge(data, resid, by =0, all.x=TRUE, all.y= FALSE)   newfile        

  }                


        [[alternative HTML version deleted]]



R-help_at_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. Received on Thu 06 Dec 2007 - 19:08:54 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 07 Dec 2007 - 15:30:17 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.