If I have vectors m1, m2, ... m"n" and I want to create a vector that includes all of the values, how would I go about this?
For example:
m1 = c(0, 2, 4)
m2 = c(1, 4)
m3 = (3)
I want a vector "totalmods" which outputs {0, 2, 4, 1, 4, 3}
My attempt where nummod is "n", the vector with the largest number was:
for(i in 1:nummod){
totalmods <- c(paste("m",i, sep = ""))
}
Thanks for your help!