Convert characters, formulas and calls to quoted .variables
as.quoted(x, env = parent.frame())a list of quoted variables
This method is called by default on all plyr functions that take a
.variables argument, so that equivalent forms can be used anywhere.
Currently conversions exist for character vectors, formulas and call objects.
as.quoted(c("a", "b", "log(d)"))
#> List of 3
#> $ a : symbol a
#> $ b : symbol b
#> $ log(d): language log(d)
#> - attr(*, "env")=<environment: 0x63d68129dbb8>
#> - attr(*, "class")= chr "quoted"
as.quoted(a ~ b + log(d))
#> List of 3
#> $ a : symbol a
#> $ b : symbol b
#> $ log(d): language log(d)
#> - attr(*, "env")=<environment: 0x63d68129dbb8>
#> - attr(*, "class")= chr "quoted"