[1] "Insp1" "Insp2" "Insp3" "Insp4" "Insp5" "Insp6" "Insp7" "Insp8" "Insp9"
and would like to convert this into a single string
"Insp1,Insp2,Insp3,Insp4,Insp5,Insp6,Insp7,Insp8,Insp9"
I can do that with a loop, but isn't there a more elegant way?
result <- repeated.measures.FACTOR.names[[1]]
for(i in 2:length(repeated.measures.FACTOR.names)) {
result <- paste(result, repeated.measures.FACTOR.names[[i]], sep=",") }