AsIs(base)
AsIs()所属R语言包:base
Inhibit Interpretation/Conversion of Objects
抑制释义对象/转换
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Change the class of an object to indicate that it should be treated "as is".
改变一个对象的类来表示,它应该被视为是。
用法----------Usage----------
I(x)
参数----------Arguments----------
参数:x
an object
对象
Details
详情----------Details----------
Function I has two main uses.
功能I有两个主要用途。
In function data.frame. Protecting an object by enclosing it in I() in a call to data.frame inhibits the conversion of character vectors to factors and the dropping of names, and ensures that matrices are inserted as single columns. I can also be used to protect objects which are to be added to a data frame, or converted to a data frame via as.data.frame.
在函数data.frame。封闭在保护对象I()在调用data.frame抑制特征向量的因素和投掷名称的转换,并确保矩阵插入单一列。 I也可以用来保护对象被添加到一个数据框,或转换成数据框通过as.data.frame。
It achieves this by prepending the class "AsIs" to the object's classes. Class "AsIs" has a few of its own methods, including for [, as.data.frame, print and format.
它实现了前面加上类"AsIs"对象的类。类"AsIs"有一些它自己的方法,包括[,as.data.frame,print和format。
In function formula. There it is used to inhibit the interpretation of operators such as "+", "-", "*" and "^" as formula operators, so they are used as arithmetical operators. This is interpreted as a symbol by terms.formula.
在函数formula。在那里,它是用来抑制运营商,如"+","-","*"和"^"作为公式运营,所以他们的算术运算符使用的解释。这是解释作为terms.formula的象征。
值----------Value----------
A copy of the object with class "AsIs" prepended to the class(es).
类对象的副本"AsIs"前面的类(ES)。
参考文献----------References----------
Linear models. Chapter 4 of Statistical Models in S eds J. M. Chambers and T. J. Hastie, Wadsworth & Brooks/Cole.
参见----------See Also----------
data.frame, formula
data.frame,formula
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|