Skip to content
Back to formatted view

Raw Message

Message-ID: <41A205D4.1010600@jhsph.edu>
Date: 2004-11-22T15:29:24Z
From: Roger D. Peng
Subject: How to insert one element into a vector?
In-Reply-To: <BAY21-F40441ECA345ACA58328DCE83C60@phx.gbl>

?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/