Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

sym

Create a symbol or list of symbols


Description

These functions take strings as input and turn them into symbols.

Usage

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("")

# This way sym() and as_string() are inverse of each other:
as_string(missing_arg())
sym(as_string(missing_arg()))

rlang

Functions for Base Types and Core R and 'Tidyverse' Features

v0.4.11
MIT + file LICENSE
Authors
Lionel Henry [aut, cre], Hadley Wickham [aut], mikefc [cph] (Hash implementation based on Mike's xxhashlite), Yann Collet [cph] (Author of the embedded xxHash library), RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.