Was tinkering with rep and seq today and wondering about the following:
> rep(c(5,12,13), each=2)
[1] 5 5 12 12 13 13
I wondered what would happen if I specified seq(1:3) for each=...
I assumed this would happen:
5, 12, 12, 13, 13, 13
but instead got:
> rep(c(5,12,13), each=c(seq(1:3...