Learn R Programming

tidytidbits (version 0.3.3)

expression_list: Extract symbols from an expression of symbols and operators

Description

Extract symbols from an expression of symbols and operators

Usage

expression_list(expr, seps = "+")

quosure_list(expr, seps = "+", env = caller_env())

symbol_string_list(expr, seps = "+")

Value

A list of all symbols in the expression, as symbol, quosure or text.

Arguments

expr

A language expression

seps

Operators to consider as separators

env

Environment for the created quosure

Examples

Run this code
expression_list(a+b+c+d)

Run the code above in your browser using DataLab