It's hard to know what's wrong since you did not supply your code. Please supply a small working example and some data. To supply data use the dput() function, see ?dput() for details.
Welcome to R. John Kane Kingston ON Canada > -----Original Message----- > From: mbhpat...@gmail.com > Sent: Mon, 1 Oct 2012 14:25:20 -0700 > To: r-help@r-project.org > Subject: [R] (no subject) > > 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 > ______________________________________________ > R-help@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. ____________________________________________________________ GET FREE SMILEYS FOR YOUR IM & EMAIL - Learn more at http://www.inbox.com/smileys Works with AIM®, MSN® Messenger, Yahoo!® Messenger, ICQ®, Google Talk™ and most webmails ______________________________________________ R-help@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.