SRUtil-class(ShortRead)
SRUtil-class()所属R语言包:ShortRead
".SRUtil" and related classes
“SRUtil。”及相关类
译者:生物统计家园网 机器人LoveR
描述----------Description----------
These classes provide important utility functions in the ShortRead package, but may occasionally be seen by the user and are documented here for that reason.
这些类提供了重要的实用功能ShortRead包,但有时可能会被视为由用户和记录,因此在这里。
类的对象----------Objects from the Class----------
Utility classes include:
实用工具类包括:
.SRUtil-class a virtual base class from which all utility classes are derived.
.SRUtil-class虚基类所有的实用工具类派生。
SRError-class created when errors occur in ShortRead package code.
SRError-class创建ShortRead包代码发生错误时。
SRWarn-class created when warnings occur in ShortRead package code
SRWarn-class时创建的警告出现在ShortRead包代码
SRList-class representing a list (heterogeneous collection) of objects.
SRList-class代表的对象的列表(异构集合)。
SRVector-class representing a vector (homogeneous collection, i.e., all elements of the same class) of objects.
SRVector-class代表一个对象的矢量(同质的集合,即在同一类的所有元素)。
Objects from these classes are not normally constructed by the user. However, constructors are available, as follows.
从这些类的对象,一般都不会由用户构建。然而,构造,如下。
SRError(type, fmt, ...), SRWarn(type, fmt, ...):
SRError(type, fmt, ...),SRWarn(type, fmt, ...):
type character(1) vector describing the type of the
类型character(1)矢量描述的类型
fmt a sprintf-style format string for the
FMT为sprintf风格的格式字符串
... additional arguments to be interpolated into fmt.
...额外的参数,被插入到fmt。
SRList(...)
SRList(...)
... elements of any type or length to be placed into the SRList. If the length of ... is 1 and the argument is a list, then the list itself is placed into
...任何类型或长度的元素被放在成SRList。如果...的长度是1和参数是一个列表,然后放入列表本身
SRVector(..., vclass)
SRVector(..., vclass)
... elements all satisfying an is relationship
...所有元素满足is的关系
vclass the class to which all elements in ... belong. If vclass is missing and length(list(...)) is greater than zero, then vclass is taken to be the class
vclass的类,...的所有元素属于。 vclass如果缺少length(list(...))是大于零,则vclass采取类
SRVector errors:
SRVector错误:
SRVectorClassDisagreement this error occurs when not all arguments ... satisfy an "is" relationship with
SRVectorClassDisagreement这个错误发生时,并非所有参数...满足一个是的关系
插槽----------Slots----------
SRError and SRWarn have the following slots defined:
SRError和SRWarn有以下时段的定义:
.type: Object of class "character" containing the type of error or warning. .type must come from a pre-defined list of types, see, e.g.,
.type:Object类的"character"含有错误或警告的类型。 .type必须来自一个类型的预定义列表,请参见,例如,
.message: Object of class "character"
.message类"character":对象
SRList has the following slot defined:
SRList有以下插槽定义:
.srlist: Object of class "list" containing the
.srlist:Object类的"list"包含
SRVector extends SRList, with the following additional slot:
SRVector延伸SRList,下列额外的插槽:
vclass: Object of class "character" naming the
vclass:Object类的"character"命名
方法----------Methods----------
Accessors are available for all slots, and have the same name as the slot, e.g., vclass to access the vclass slot of SRVector. Internal slots (those starting with "." also have accessors, but these are not exported e.g., ShortRead:::.type.
存取可用于所有的插槽,插槽的名称相同,例如,vclass访问vclassSRVector插槽的。内部插槽(开始。“也有存取,但这些都不是出口,如ShortRead:::.type。
SRList has the following methods:
SRList有以下几种方法:
length signature(x = "SRList"): return the
长度signature(x = "SRList"):返回
names signature(x = "SRList"): return a character vector of list element names. The length of the returned vector is
名称signature(x = "SRList"):返回一个列表元素名称的特征向量。返回向量的长度
names<- signature(x = "SRList", value = "character"):
名称< - signature(x = "SRList", value = "character"):
[ signature(x = "SRList", i = "ANY", j = "missing"):
[signature(x = "SRList", i = "ANY", j = "missing"):
[[ signature(x = "SRList", i = "ANY", j = "missing"): select element "i" from the list, using standard R list
[signature(x = "SRList", i = "ANY", j = "missing"):select元素的“i”从列表中,使用标准的R列表
lapply signature(X = "SRList", FUN="ANY"): apply a function to all elements of X, with additional arguments interpreted
lapplysignature(X = "SRList", FUN="ANY"):适用于额外的参数解释以X所有元素的功能,
sapply signature(X = "SRList"): apply a function to all elements of X, simplifying the result if possible. Additional arguments interpreted as with
sapplysignature(X = "SRList"):应用X所有元素的功能,简化的结果,如果可能的话。额外的参数与解释
show signature(object = "SRList"): display an informative summary of the object content, including the length of
显示signature(object = "SRList"):显示对象的内容翔实的总结,包括长度
detail signature(x = "SRList"): display a more extensive version of the object, as one might expect from printing
详细signature(x = "SRList"):显示对象的一个更广泛的版本,作为一个可能期望从印刷
SRVector inherits all methods from SRList, and has the following additional methods:
SRVector从SRList继承的所有方法,并具有下列额外的方法:
show signature(object = "SRVector"): display an informative summary of the object content, e.g., the vector class
显示signature(object = "SRVector"):显示对象的内容,翔实的总结,例如,Vector类
detail signature(x = "SRVector"): display a more extensive version of the object, as one might expect from a
详细signature(x = "SRVector"):显示一个对象的更广泛的版本,正如人们所期望从一个
作者(S)----------Author(s)----------
Martin Morgan
举例----------Examples----------
getClass(".SRUtil", where=getNamespace("ShortRead"))
ShortRead:::.SRError_types
ShortRead:::.SRWarn_types
detail(SRList(1:5, letters[1:5]))
tryCatch(SRVector(1:5, letters[1:5]),
SRVectorClassDisagreement=function(err) {
cat("caught:", conditionMessage(err), "\n")
})
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|