Skip to content
Prev 334444 / 398506 Next

How to use variables whose names are with number at end in R loop

Hi David,
On 12/14/2013 01:06 PM, Marino David wrote:
for (i in 1:100){
   f(get(paste0("v", i)))
}

Cheers,
H.