Skip to contents

Unwrap an expression

Usage

unwrap_expr(x)

Arguments

x

an expression

Value

list of strings converted from the expression

Examples

unwrap_expr(x + y + z)
#> [[1]]
#> [1] "+"
#> 
#> [[2]]
#> [[2]][[1]]
#> [1] "+"
#> 
#> [[2]][[2]]
#> [1] "x"
#> 
#> [[2]][[3]]
#> [1] "y"
#> 
#> 
#> [[3]]
#> [1] "z"
#>