Displaying 1 result from an estimated 1 matches for "add_to_end_of_vector".
2005 Jan 04
3
Adding values to the end of a vector?
I want to add values onto the end of a vector, for example...
x <- vector
for (i in 1:5){
add_to_end_of_vector(i,x)
}
I just cant find the answer to this question!
Sorry for such a basic question, I tried...
x <- c()
for (i in 1:5) x[length(x)] <- i
but it didn't work.