suppose I want to insert 5 into the vector (1,2,3,4,6) between 4 and 6. thx!
How to insert one element into a vector?
2 messages · jing tang, Roger D. Peng
?append --- look at the `after' argument. -roger
jing tang wrote:
suppose I want to insert 5 into the vector (1,2,3,4,6) between 4 and 6. thx!
______________________________________________ R-help at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/