I need to generate a vector of the following format using R:
1:10, 1:10, 11:20, 11:20, ... 121:130, 121:130
Is there an easier way than cre
Another way:
x <- matrix(1:130, 10, 13) c(rbind(x, x))
Possible more efficient version:
x <- 1:130 dim(x) <- c(10,13) c(rbind(x, x))