typeof(base)
typeof()所属R语言包:base
The Type of an Object
一个对象的类型
译者:生物统计家园网 机器人LoveR
描述----------Description----------
typeof determines the (R internal) type or storage mode of any object
typeof决定的(内部)类型或存储任何对象模式
用法----------Usage----------
typeof(x)
参数----------Arguments----------
参数:x
any R object.
任何R对象。
值----------Value----------
A character string. The possible values are listed in the structure TypeTable in "src/main/util.c". Current values are the vector types "logical", "integer", "double", "complex", "character", "raw" and "list", "NULL", "closure" (function), "special" and "builtin" (basic functions and operators), "environment", "S4" (some S4 objects) and others that are unlikely to be seen at user level ("symbol", "pairlist", "promise", "language", "char", "...", "any", "expression", "externalptr", "bytecode" and "weakref").
一个字符串。可能的值列出的结构TypeTablesrc/main/util.c。当前值向量类型"logical","integer","double","complex","character","raw"和"list",< x>,"NULL"(功能),"closure"和"special"(基本功能和运营商),"builtin","environment"(S4对象)和其他不大可能在用户级别("S4","symbol","pairlist","promise","language","char","..." "any","expression","externalptr"和"bytecode")。
参见----------See Also----------
mode, storage.mode.
mode,storage.mode。
isS4 to determine if an object has an S4 class.
isS4确定对象是否有S4类。
举例----------Examples----------
typeof(2)
mode(2)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|