This feels like a simply question that I'm overlooking somehow. So I have many vectors of differing lengths that I'd like to put together into 1 large data frame. I've been playing around with merge() and full_join(), and similar functions but these seem primarily focused on combining only 2 strings of unequal size. I have 30.
#Basically, I have something like this:
a <- c(1:5)
b <- c(1:7)
c <- c(1:20)
d <- c(1:16)
e <- c(1:9)
f <- c(1:42)
#and I would like to make something like this:
a b c d e f
1 1 1 1 1 1
2 2 2 2 2 2
3 3 3 3 3 3
4 4 4 4 4 4
5 5 5 5 5 5
NA 6 6 6 6 6
NA 7 7 7 7 7
NA NA 8 8 8 8
ect...
ect...
ect...
Any suggestions?