[R] append

Judy Chung cp3942 at gmail.com
Sat Dec 10 14:41:31 CET 2005


Dear R users:

 > append(1:5, 0:1, after=2)
[1] 1 2 0 1 3 4 5

If I want to repeat the appended value every 2 like the following:
[1] 1 2 0 1 3 4 0 1 5

How should I modify?
Thank you for any help.




More information about the R-help mailing list