It will be great if you can reproduce some code and data you are working on.
Bhupendrasinh Thakre On Oct 1, 2012, at 4:25 PM, bibek sharma <[email protected]> wrote: > Hello, > I am a new R -user and request your help for the following problem. > I need to merge two dataset of longitudinal study which has two column > (id and respose) common. when I used merge option to join the datas > side be side, because of the repeated subject id, I got larger data > set which is not accurate. > > I would like to connect twi data sets by id and response in such a > way that data are connected by same id and response type and if the > same subject has less data point in one data set, then produce NA. > Sample data sets is attached. > > Bibek > ______________________________________________ > [email protected] 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. [[alternative HTML version deleted]] ______________________________________________ [email protected] 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.

