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

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -