These functions take strings as input and turn them into symbols.
sym(x) syms(x)
x | A string or list of strings. |
---|
A symbol for sym()
and a list of symbols for syms()
.
# The empty string returns the missing argument: sym("") #> # This way sym() and as_string() are inverse of each other: as_string(missing_arg()) #> [1] "" sym(as_string(missing_arg())) #>