how to declare and add values to a vector in R code example Example: r append to vector append(x, values, after = length(x))