Learn R Programming

tidytidbits (version 0.3.2)

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 = "+")

Arguments

expr

A language expression

seps

Operators to consider as separators

env

Environment for the created quosure

Value

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

Examples

Run this code
# NOT RUN {
expression_list(a+b+c+d)
# }

Run the code above in your browser using DataLab