isVersioned(Biobase)
isVersioned()所属R语言包:Biobase
Determine whether object or class contains versioning information
确定对象或类是否包含版本信息
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This generic function checks to see whether Versioned-class information is present. When the argument to isVersioned is a character string, the prototype of the class corresponding to the string is consulted.
这个通用的功能检查,看是否Versioned-class信息。当isVersioned参数是一个字符串,字符串对应的类的原型意见。
By default, isVersioned has the following behaviors:
默认情况下,isVersioned有下列行为:
isVersioned(Versioned-instance) Returns TRUE when the instance have version information.
isVersioned(Versioned-instance)返回TRUE实例有版本信息。
isCurrent("class-name") Returns TRUE when the named class extends Versioned-class.
isCurrent("class-name")返回TRUE命名的类扩展时Versioned-class。
isVersioned(ANY) Returns FALSE
isVersioned(ANY)返回FALSE
用法----------Usage----------
isVersioned(object)
参数----------Arguments----------
参数:object
Object or class name to check for version information, as described above.
对象或类的名称来检查版本信息,如上所述。
值----------Value----------
isVersioned returns a logical indicating whether version information is present.
isVersioned返回一个逻辑显示版本信息是否存在。
作者(S)----------Author(s)----------
Biocore team
参见----------See Also----------
Versions-class
Versions-class
举例----------Examples----------
obj <- new("VersionedBiobase")
isVersioned(obj)
isVersioned(1:10) # FALSE[假]
setClass("A", contains="VersionedBiobase",
prototype=prototype(new("VersionedBiobase", versions=c(A="1.0.0"))))
a <- new("A")
isVersioned(a)
removeClass("A")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|