Re: [R] Please help me to combine two datasets.

From: ronggui <ronggui.huang_at_gmail.com>
Date: Thu 11 May 2006 - 17:54:00 EST

?merge maybe is what you want.

2006/5/11, Arun Kumar Saha <arun.kumar.saha@gmail.com>:
> Dear r-users,
>
> Suppose I have two data sets
>
> data set-1
>
> Date height
> ------------------------
> 1/11/2005 10
> 2/11/2005 23
> 3/11/2005 54
> 4/11/2005 21
> 5/11/2005 22
>
> data set-2
>
> weight
> --------
> 32
> 45
> 11
>
>
> Now I want to combine this two data sets. i.e. i want to see:
>
>
> Date height weight
> -------------------------------------------
> 3/11/2005 54 32
> 4/11/2005 21 45
> 5/11/2005 22 11
>
> Can any one give me the required r-code to perform this?
>
> Thanks and regards,
> Arun
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>

-- 
ٹ
Deparment of Sociology
Fudan University



______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Received on Thu May 11 18:07:03 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 11 May 2006 - 20:10:05 EST.

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