DataFrameList-class(IRanges)
DataFrameList-class()所属R语言包:IRanges
List of DataFrames
对DataFrames名单
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Represents a list of DataFrame objects. The SplitDataFrameList class contains the additional restriction that all the columns be of the same name and type. Internally it is stored as a list of DataFrame objects and extends
表示DataFrame对象名单。 SplitDataFrameList类包含额外的限制,所有列相同的名称和类型。它内部存储DataFrame对象名单,并延伸
存取----------Accessors----------
In the following code snippets, x is a DataFrameList.
在下面的代码片段,x是DataFrameList。
dim(x): Get the two element integer vector indicating
dim(x):获得两个元素的整数向量表示
dimnames(x): Get the list of two character vectors, the first holding the rownames (possibly NULL) and the second the column names.
dimnames(x):获取两个特征向量,第一控股的rownames(可能NULL)和第二列名的列表。
columnMetadata(x): Get the DataFrame of metadata along the columns, i.e., where each column in x is represented by a row in the metadata. The metadata is common across all elements of x. Note that calling elementMetadata(x) returns the metadata on the DataFrame elements of x.
columnMetadata(x):DataFrame沿列,即,其中每个列x“是由一排在元数据中表示的元数据。元数据共同跨越x所有的元素。请注意,调用elementMetadata(x)DataFramex元素返回元数据。
columnMetadata(x) <- value: Set the DataFrame of metadata for the columns.
columnMetadata(x) <- value:设置元数据列的DataFrame。
子集----------Subsetting----------
In the following code snippets, x is a SplitDataFrameList. In general x follows the conventions of SimpleList/CompressedList with the following addition:
在下面的代码片段,x是SplitDataFrameList。一般x如下公约SimpleList/CompressedList下面的加法:
x[i,j,drop]: If matrix subsetting is used, i selects either the list elements or the rows within the list elements as determined by the [ method for SimpleList/CompressedList, j selects the columns, and drop is used when one column is selected and output can be coerced into an AtomicList or RangesList subclass.
x[i,j,drop]:如果使用矩阵子集,i选择列表中的元素在列表中的元素或行由[SimpleList/CompressedList了法确定,j选择列,drop使用时,一列被选中,可分为AtomicList或RangesList子类强制输出。
x[i,j] <- value: If matrix subsetting is used, i selects either the list elements or the rows within the list elements as determined by the [<- method for SimpleList/CompressedList, j selects the columns and value is the replacement value for the selected region.
x[i,j] <- value:如果使用矩阵子集,i选择列表中的元素在列表中的元素或行由[<-SimpleList/CompressedList了法确定,j选择列和value是选定区域的重置价值。
构造----------Constructor----------
DataFrameList(...): Concatenates the DataFrame
DataFrameList(...):串连DataFrame
SplitDataFrameList(..., compress = TRUE, cbindArgs = FALSE): If cbindArgs is FALSE, the ... arguments are coerced to DataFrame objects and concatenated to form the result. The arguments must have the same number and names of columns. If cbindArgs is TRUE, the arguments are combined as columns. The arguments must then be the same length, with each element of an argument mapping to an element in the result. If compress = TRUE, returns a CompressedSplitDataFrameList; else returns a
SplitDataFrameList(..., compress = TRUE, cbindArgs = FALSE):如果cbindArgs是FALSE,的...参数是强迫DataFrame对象,并连接起来,形成结果。参数必须有相同数目的列名。 cbindArgs如果是TRUE,参数相结合,为列。参数必须是相同的长度,每一个参数的映射结果中的元素的元素。如果compress = TRUE,返回CompressedSplitDataFrameList;其他返回
结合----------Combining----------
In the following code snippets, objects in ... are of class DataFrameList.
在下面的代码片段,对象...类DataFrameList。
rbind(...): Creates a new DataFrameList containing the element-by-element row concatenation of the objects in ....
rbind(...):创建一个新的DataFrameList包含在...对象的元素,元素的行串连。
cbind(...): Creates a new DataFrameList containing the element-by-element column concatenation of the objects in ....
cbind(...):创建一个新的DataFrameList包含在...对象的元素元素列串联。
强迫----------Coercion----------
In the following code snippets, x is a DataFrameList.
在下面的代码片段,x是DataFrameList。
as(from, "DataFrame"): Coerces a DataFrameList to an DataFrame by combining the rows of the elements. This essentially unsplits the DataFrame. Every element of x must have the same columns.
as(from, "DataFrame"):胁迫,以一个DataFrameList结合元素的行的DataFrame。这基本上unsplitsDataFrame。每x元素必须有相同的列。
as(from, "SplitDataFrameList"): By default, simply calls the SplitDataFrameList constructor on from. If from is a List, each element of from is passed as an argument
as(from, "SplitDataFrameList"):默认情况下,简单地调用SplitDataFrameListfrom构造。如果from是List每个from元素作为一个参数传递
as.data.frame(x, row.names=NULL, optional=FALSE, ...): Unsplits the DataFrame and coerces it to a data.frame, with the rownames specified in row.names. The optional argument is ignored.
as.data.frame(x, row.names=NULL, optional=FALSE, ...):UnsplitsDataFrame“强制到一个data.frame,row.names指定的rownames。 optional参数将被忽略。
stack(x, indName = "space"): Unlists x and adds a column named indName to the result, indicating the element of x from which each row was obtained.
stack(x, indName = "space"):Unlists使x,并增加了一列名为indName结果,表示x从中获得每一行的元素。
作者(S)----------Author(s)----------
Michael Lawrence
参见----------See Also----------
DataFrame, RangedData, which uses a DataFrameList to split the data by the spaces.
DataFrame,RangedData使用DataFrameList分裂的空间数据。
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|