Given a vector of variables, transform the vector so that each variable is repeated
For example, I could
sort(rep(c('a', 'c', 'b')))
except that I don't want to sort them; I want it to return c('a', 'a', 'c', 'c', 'b', 'b')
Given a vector of variables, transform the vector so that each variable is repeated
For example, I could
sort(rep(c('a', 'c', 'b')))
except that I don't want to sort them; I want it to return c('a', 'a', 'c', 'c', 'b', 'b')