找回密码
 注册
查看: 3059|回复: 0

R语言:AsIs()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-16 18:46:29 | 显示全部楼层 |阅读模式
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:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-2-3 07:04 , Processed in 0.020246 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表