I want to repeat a factor as illustrated below: I am not sure if this can be done using the rep()
function?
input:
c("100G","105G","302G")
out:
c("100G","100G","100G","100G","100G","105G","105G","105G","105G","105G","302G","302G","302G","302G","302G")