R - Reading vector or dataframe from string -
i read data frame string. bit difficult explain, and, far couldn't find answer anywhere.
let's imagine have several data frames: "param1", "param2", ... "param100". able access them loop:
for (i in c(1:100)){ <- paste0("param",i) b <- ??? (a) }
where b
become "param1", ... "param100" when i
varies 1 100.
use get
.
for (i in 1:100) { b <- get(paste0("param", i)) }
Comments
Post a Comment