是否可以在表达式中获取向量或变量列表?
例如:
e <- expression(2 * x^2 + y)
所需的输出:
('x', 'y')
可能吗?或者是否需要手动输入变量名称?
用途all.vars:
all.vars
all.vars(e) [1] "x" "y"