Skip to content
Prev 293575 / 398503 Next

Interweaving of two datasets

Hello,


lunarossa wrote
Try

?merge

set.seed(1)
df1 <- data.frame(Name=LETTERS[1:5], Phone=1:5)
df2 <- data.frame(Name=sample(LETTERS[1:5], 20, TRUE),
Request=sample(letters[1:3], 20, TRUE))

joined <- merge(df1, df2)
with(joined, table(Name, Request))

Also, I hope this is what you want, it corresponds to your description but
there's no "reproducible example (posting-guide)".

Rui Barradas


--
View this message in context: http://r.789695.n4.nabble.com/Interweaving-of-two-datasets-tp4608505p4608740.html
Sent from the R help mailing list archive at Nabble.com.