From: Jan Sabee <jan.sabee_at_gmail.com>

Date: Fri 14 Oct 2005 - 03:47:35 EST

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 Fri Oct 14 03:51:10 2005

Date: Fri 14 Oct 2005 - 03:47:35 EST

Is there any routine to generate for one vector matrix.
If I have X I want to generate start from zero to maximum value each vector.

For example, I have a vector x = (4,2,3,1,4) I want to generate n=6 times, for 4, start 0 to 4, then 2 start 0 to 2, ect.

The result something like this:

generate(x,n=6)

1,1,2,1,4 1,2,3,0,3 4,0,1,1,1 3,1,0,1,4 0,0,3,0,0 4,1,3,0,4

Could anyone help me. Thanks.

Regards,

Jan Sabee

[[alternative HTML version deleted]]

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 Fri Oct 14 03:51:10 2005

*
This archive was generated by hypermail 2.1.8
: Fri 03 Mar 2006 - 03:40:44 EST
*