[R] creating list of the from 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, . . ., n, n, n?
Christian Ruckert
cruckert at uni-muenster.de
Fri Aug 14 16:56:49 CEST 2009
- Previous message: [R] creating list of the from 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, . . ., n, n, n?
- Next message: [R] large matrices in SparseM
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
John Sorkin wrote:
> Windows XP
> R 2.8.1
>
> Is there any way to make a list of the from
> 1,1,1,2,2,2,3,3,3,4,4,4, . . ., n,n,n?
rep(1:n, each=3)
Greetings,
Christian
- Previous message: [R] creating list of the from 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, . . ., n, n, n?
- Next message: [R] large matrices in SparseM
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the R-help
mailing list