[R] How to add values to an array at any position.

Gabor Grothendieck ggrothendieck at myway.com
Sun Oct 31 02:20:10 CEST 2004


Witold Eryk Wolski <wolski <at> molgen.mpg.de> writes: 
> In the first place I was wondering if there are no function 
> _insert.vector_  in base.

There is append.  e.g. insert 100:101 after position
3 of 11:15

R> append(11:15, 100:101, 3)
[1]  11  12  13 100 101  14  15




More information about the R-help mailing list