[R] append

From: Judy Chung <cp3942_at_gmail.com>
Date: Sun 11 Dec 2005 - 00:41:31 EST


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.



R-help@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 Received on Sun Dec 11 00:54:12 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:41:35 EST