Conversation

? #rstats friends - I'm trying to copy and insert every value after itself in a vector. Ex: v1 <- c('a','b') into v2 <- c('a','a','b','b') Would a for loop work instead of multiple instances of: append(values = v1[1], after = 1) %>% append(values = v1[2], after = 2) ...
4