On 12/10/2021 7:16 a.m., PIKAL Petr wrote:
Dear all
I know it is quite easy to get a simple seqence by rep function
c(rep(1:3, 2), rep(4:6,2))
[1] 1 2 3 1 2 3 4 5 6 4 5 6
I could easily get vector of length 24 or 36 using another rep
rep(c(rep(1:3, 2), rep(4:6,2)),2)
[1] 1 2 3 1 2 3 4
Dear all
I know it is quite easy to get a simple seqence by rep function
> c(rep(1:3, 2), rep(4:6,2))
[1] 1 2 3 1 2 3 4 5 6 4 5 6
I could easily get vector of length 24 or 36 using another rep
> rep(c(rep(1:3, 2), rep(4:6,2)),2)
[1] 1 2 3 1 2 3 4 5 6 4 5 6 1 2 3 1 2 3 4 5 6 4 5 6
> length(rep
2 matches
Mail list logo