[R] Merging 2 files in R

Stephen Arthur sarthur at protogene.com
Thu Jun 22 23:58:18 CEST 2000


Hi,

Is there a function (a way) to merge to files in R, as could be done in
SAS?

Example Data:

File1

C A T

File2

1 2 34 56
2 3 45 67
3 4 56 78

To Yield:

C A T 1 2 34 56
C A T 2 3 45 67
C A T 3 4 56 78

functions merge, cbind don't seem to do the trick.

Thanks,

steve

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list