Data(xpose4data)
Data()所属R语言包:xpose4data
Extract data from an xpose.data object.
提取数据从xpose.data对象。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Extracts the data from the Data or SData slots in an "xpose.data" object.
提取的数据,从数据或一个“xpose.data”对象SDATA插槽中。
用法----------Usage----------
Data(object,
inclZeroWRES = FALSE,
onlyfirst = FALSE,
subset = NULL)
SData(object,
inclZeroWRES = FALSE,
onlyfirst = FALSE,
subset = NULL,
samp = NULL)
Data(object,quiet=TRUE,keep.structure=F) <- value
SData(object) <- value
参数----------Arguments----------
参数:object
An "xpose.data" object
对象的“xpose.data”
参数:inclZeroWRES
Logical value indicating whether rows with WRES==0 should be included in the extracted data.
逻辑值,该值指示是否应包含在所提取的数据行WRES == 0。
参数:onlyfirst
Logical value indicating whether only the first line per individual should be included in the extracted data.
逻辑值,该值指示是否只应包括在第一线,每个人所提取的数据。
参数:subset
Expression with which the extracted data should be subset (see xsubset)
表达与提取的数据子集(见xsubset)
参数:samp
An integer between 1 and object@Nsim (seexpose.data-class) specifying which of the simulated data sets to extract from SData.
1和对象NSIM(见xpose.data-class)指定的模拟数据集提取SDATA之间的整数。
参数:quiet
TRUE or FALSE ifFALSE then some more information is printed out when adding data to an Xpose object.
TRUE or FALSE如果FALSE然后一些更多的信息打印出来时将数据添加到一个XPOSE对象。
参数:keep.structure
TRUE or FALSE ifFALSE then values are converted to continuous or categorical according to the rules set up by xpose using object@Prefs@Cat.levels, object@Prefs@DV.cat.levels and the values in the "catab" file.
TRUE or FALSE如果FALSE然后值被转换为根据设置的规则的XPOSE使用对象@ Prefs@Cat.levels,的对象@ Prefs@DV.cat.levels和值在连续的或绝对的“catab”的文件。
参数:value
An R data.frame.
R的数据框。
Details
详细信息----------Details----------
When using Data to assign a data.frame to the Data slot in the "xpose.data" object a number of things happen:
当使用数据的数据插槽分配一个数据框在“xpose.data”的对象,一些事情发生:
Each column in the data.frame is checked and set to factor if the number of unique values are less than the value of Cat.levels (see xpose.prefs-class).
每一列中的数据框被选中,并设置为唯一值数量的因素,如果少比的价值Cat.levels(见xpose.prefs-class“)。
It is checked which of the predefined xpose data variables that exists in the data.frame. The variable defintions that does not exist are set to NULL.
检查的的预定义XPOSE数据变量中存在的数据框。不存在的变量定义成为被设置为NULL。
The column identified by the dv xpose variable definition, is checked and set to factor if the number of unique values are less than or equal to the DV.Cat.levels (see xpose.prefs-class).
所标识的列dv变量定义XPOSE,检查并设置为因子如果唯一值的数目小于或等于的DV.Cat.levels(见xpose.prefs-class)。
Finally, each column name in the data.frame is checked for a label (see xpose.prefs-class). If it is non-existent, the label is set to the column name.
最后,每一个列名在数据框被选中的标签(见xpose.prefs-class“)。如果它是不存在的,标签设置的列名。
When SData is used to assign a data.frame to the SData slot it is first checked that the number of rows in the SData data.frame is an even multiple of the number of rown in Data. Next, each column in the SData data.frame is assigned the same class as the corresponding column in the Data data.frame (it is required that the columns are the same in Data and SData). Finally, an extra column, "iter", is added to SData, which indicates the iteration number that each row belongs to. At the same time, the Nsim slot of the "xpose.data" object is set to the number of iterations (see nsim).
SDATA是用来指定数据框的SDATA插槽时,它首先检查在SDATA数据框的行数的偶数倍,在数据的数目rown。接着,SDATA数据框的每一列中的被分配的对应列中的数据的数据框(它是必需的列是相同的数据和SDATA)相同的类别。最后,一个额外的列,“迭代”,被添加到SDATA,该指示的迭代次数,每一行属于。在同一时间,NSIM插槽的“xpose.data”对象的迭代的次数被设置为(见nsim)。
值----------Value----------
Returns a data.frame from the Data or SData slots, excluding rows as indicated by the arguments.
返回一个数据框从数据或SDATA插槽,但不包括如所指示的参数的行。
(作者)----------Author(s)----------
Niclas Jonsson
参见----------See Also----------
xpose.data-class,xpose.prefs-class
xpose.data-class,xpose.prefs-class
实例----------Examples----------
## Not run: [#不运行:]
## xpdb5 is an Xpose data object[#xpdb5是一个XPOSE的数据对象]
## We expect to find the required NONMEM run and table files for run[#我们希望找到所需的NONMEM运行和表文件运行的]
## 5 in the current working directory[排名第5的当前工作目录]
xpdb5 <- xpose.data(5)
## Extract data[#提取数据]
my.dataframe <- Data(xpdb5, subset="TIME < 24")
## Assign data[#分配数据]
Data(xpdb5) <- my.dataframe
## Extract simulated data[#提取的模拟数据。]
my.simulated.dataframe <- SData(xpdb5)
## Assign simulated data[#指定的模拟数据。]
SData(xpdb5) <- my.simulated.dataframe
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|