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

elasticsearch - what is the equivalent data type for geo_point in hibernate search? -

firebase - How to wait value in Ionic 2 -

Jenkins: find build number for git commit -