eval.js(sendplot)
eval.js()所属R语言包:sendplot
A JAVASCRIPT-LIKE EVAL FUNCTION
JavaScript的eval函数
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function evaluates expressions.
这个函数表达式求值。
用法----------Usage----------
eval.js(expr,
envir=parent.frame(),
enclos=if(is.list(envir)||is.pairlist(envir)) parent.frame())
参数----------Arguments----------
参数:expr
character string of an expression to evaluate
计算的表达式的字符串
参数:envir
passed to eval function. see eval
传递到eval函数。请参见eval
参数:enclos
passed to eval function. see eval
传递到eval函数。请参见eval
Details
详细信息----------Details----------
Wrapper to the eval functions from the R base package. Evaluates character expression.
包装R基本包中的eval函数。计算字符表达式。
值----------Value----------
will return the evaluated expression
将返回计算的表达式
注意----------Note----------
uses function eval from base package
从基础包使用函数eval
(作者)----------Author(s)----------
James Java
参考文献----------References----------
<h3>See Also</h3>
实例----------Examples----------
df = list()
df$a = rep(1,5)
df$b = rep("one",5)
df = as.data.frame(df)
#for comparison view[比较图]
df
eval.js("df$new = NA")
df
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|