I'm trying to figure out how to append more data to an existing dataframe one column at a time. For example: I have this dataframe:
df <- data.frame("x" = c(1, 2, 3, 4, 5), "y" = c(0.255, 0.236, 0.587, 0.369, 0.789))
Here are additional data I want to append. I want to add x2 to the bottom of the x column and then add y2 to the bottom of the y column.
x2 <- c(6, 7, 8, 9, 10)
y2 <- c(0.236, 0.963, 0.356, 0.489, 0.333)
This is what I want the dataframe to look like after.
x y
1 0.255
2 0.236
3 0.587
4 0.369
5 0.789
6 0.236
7 0.963
8 0.356
9 0.489
10 0.333