sym {rlang} | R Documentation |
These functions take strings as input and turn them into symbols.
Contrarily to as.name()
, they convert the strings to the native
encoding beforehand. This is necessary because symbols remove
silently the encoding mark of strings (see set_str_encoding()
).
sym(x) syms(x)
x |
A string or list of strings. |
A symbol for sym()
and a list of symbols for syms()
.