Well, that should be easy, but I'm looking for a solution that is as quick as possible.
Let's say I have 3 tables (the number of tables will be much larger):
tab1 <- table(c(1, 1, 1, 2, 2, 3, 3, 3)) tab2 <- table(c(1, 1, 4, 4, 4)) tab3 <- table(c(1, 1, 2, 3, 5))
This is what we get:
> tab1 1 2 3 3 2 3 > tab2 1 4 2 3 > tab3 1 2 3 5 2 1 1 1
What I want to do in a quick way so that it works with many large tables is the following:
1 2 3 4 5 7 3 4 3 1
So basically tables are joined by all names . Is there an elementary function that does this that I am missing? Thank you for your help!
r
swolf
source share