You found one answer, i.e. eval(parse())
. You can also investigate do.call()
which is often simpler to implement. Keep in mind the useful as.name()
tool as well, for converting strings to variable names.
More Related Contents:
- Calling variable in matrix with another variable, R
- How can two strings be concatenated?
- Assign multiple new variables on LHS in a single line
- Access variable value where the name of variable is stored in a string
- Splitting a continuous variable into equal sized groups
- Concatenate row-wise across specific columns of dataframe
- How to get name of variable in R (substitute)?
- R- how to dynamically name data frames? [duplicate]
- Consistent color scale and legend between plots when not all levels of a grouping variable are present in the data
- Row-wise sort then concatenate across specific columns of data frame
- Concatenate / paste a column by a group and add to original data
- Test if an argument of a function is set or not in R
- Replace values greater than zero with 1 in r
- How to select the rows with maximum values in each group with dplyr? [duplicate]
- Split character column into several binary (0/1) columns
- Workflow for statistical analysis and report writing
- Calculate the Area under a Curve
- Grouped bar plot in ggplot
- Putting mathematical symbols and subscripts mixed with regular letters [duplicate]
- Create discrete color bar with varying interval widths and no spacing between legend levels
- Increase distance between text and title on the y-axis
- Suppress error message in R
- Converting date in Year.decimal form in R
- Pattern matching using a wildcard
- read/write data in libsvm format
- Different legend-keys inside same legend in ggplot2
- R stat_smooth all points
- How do you scrape items together so you don’t lose the index?
- Convert accented characters into ascii character
- Change the position of the strip label in ggplot from the top to the bottom?