powered by
Note: this method uses string substitution and is willing to substitute in arbitrary content, please prefer using let where applicable.
let
seval(alias, expr, ..., eval = TRUE, debugPrint = FALSE)
mapping from free names in expr to target names to use.
block to prepare for execution.
force later arguments to be bound by name.
logical if TRUE execute the re-mapped expression (else return it).
logical if TRUE print debugging information when in stringsubs mode.
result of expr executed in calling environment (or expression if eval==FALSE)
let, ateval, beval
ateval
beval
# NOT RUN { seval(c(COLS= "c('Sepal.Width', 'Petal.Length')"), head(iris[, COLS, drop=FALSE]) ) # }
Run the code above in your browser using DataLab