If you want to declare an empty vector in R, you can do the following:
vec <- vector()
Then you can add element to this vector:
vec <- c(vec, 1:10)
The value of vec now is:
1 2 3 4 5 6 7 8 9 10
If you want to declare an empty vector in R, you can do the following:
vec <- vector()
Then you can add element to this vector:
vec <- c(vec, 1:10)
The value of vec now is:
1 2 3 4 5 6 7 8 9 10