[R] Sequence generation

njhuang86 njhuang86 at yahoo.com
Sat Aug 29 21:14:15 CEST 2009


Hey guys,

I was wondering how to create this sequence: 1, 2, 3, 1, 2, 3, 1, 2, 3, 1,
2, 3... with the '1, 2, 3' repeated over 10 times.

Also, is there a simple method to generate 1, 1, 1, 2, 2, 2, 3, 3, 3?

Anyways, any help with be greatly appreciated!
-- 
View this message in context: http://www.nabble.com/Sequence-generation-tp25205593p25205593.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list