R语言 eval(quote(x)) 和 eval(x)

eval() ’s first argument is an expression. So if you only provide one argument, it will evaluate the expression in the current environment.express

假设环境中存在变量 x=10ide

eval(quote(x), list(x=30)) 至关于
首先,lua

quote(x)

获得x
以后,code

list(x=30)
x

因而获得30it

若是是eval(x, list(x=30)), 至关于
首先,io

x

获得10
以后,变量

list(x=30)
10

因而获得10vi

这里面有层层拨开的关系.co

相关文章
相关标签/搜索