These functions take strings as input and turn them into symbols.
sym(x)
syms(x)
Arguments
| x |
A string or list of strings. |
Value
A symbol for sym() and a list of symbols for syms().
Examples
# The empty string returns the missing argument:
sym("")
#>
#> [1] ""
#>