[R] How to insert one element into a vector?
Roger D. Peng
rpeng at jhsph.edu
Mon Nov 22 16:29:24 CET 2004
?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/
More information about the R-help
mailing list