Most efficient way to create sequential string vector in R -




what efficient way in r?

vic <- c() for(i in 1:12){   vic[i] <- paste0("ng.fwd.p_tfi_m",i,":hello") } 

vectorizing loop:

paste0("ng.fwd.p_tfi_m",1:12,":hello") 




wiki

Comments

Popular posts from this blog

firebase - How to wait value in Ionic 2 -

Jenkins: find build number for git commit -

typescript - Typings for sub-folders inside a root index.d.ts -