Interweaving of two datasets
I'm not sure if this is what you want but try
library(reshape2)
dat3 <- merge(dat1, dat2)
xx <- melt(dat3, id=c("phone", "request"))
dcast(dat3 , phone + name + address ~ request )
John Kane
Kingston ON Canada
-----Original Message----- From: gloriaalbe1 at yahoo.it Sent: Fri, 11 May 2012 07:29:22 -0700 (PDT) To: r-help at r-project.org Subject: Re: [R] Interweaving of two datasets Ok, merging in this way the total number of rows of the new dataset is the number of rows of the dataset "request". Is it possible to obtain a new dataset with the number of rows of the dataset "phone"? -- View this message in context: http://r.789695.n4.nabble.com/Interweaving-of-two-datasets-tp4608505p4626591.html Sent from the R help mailing list archive at Nabble.com.
______________________________________________ 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.
____________________________________________________________ Send your photos by email in seconds... TRY FREE IM TOOLPACK at http://www.imtoolpack.com/default.aspx?rc=if3 Works in all emails, instant messengers, blogs, forums and social networks.