Thank you @erognli, I could work around the rep(x, each = n) function, by defining an index in R. But this may be helpfull in the future!
Thank you @erognli, I could work around the rep(x, each = n) function, by defining an index in R. But this may be helpfull in the future!