cellInfo(sdcTable)
cellInfo()所属R语言包:sdcTable
query information for a specific cell in <a href="safeObj-class.html">safeObj-class</a> objects
在<a href="safeObj-class.html"> safeObj类</ a>的对象为特定的单元信息查询
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Function cellInfo is used to query information for a single table cell for objects of class safeObj-class.
函数cellInfo是用来查询信息的一个表格单元格的对象类safeObj-class。
用法----------Usage----------
cellInfo(object, characteristics, varNames,
verbose = FALSE)
参数----------Arguments----------
参数:object
an object of class safeObj-class
一个对象的类safeObj-class
参数:characteristics
a character vector specifying characteristics of the table cell that should be identified for each dimensional variable defining the table
字符向量指定的表格单元格的特点,应确定各维变量定义表
参数:varNames
a character vector specifying variable names of dimensional variables defining the tables
指定三维变量定义的表变量名的字符向量
参数:verbose
logical vector of length 1 defining verbosity, defaults to 'FALSE'
逻辑向量长度为1的定义冗长,默认为“假”
值----------Value----------
a list containing the following calculated information
一个列表,其中包含以下计算出的信息
cellID: numeric vector of length 1 specifying the index of the cell within the final result
cellID:指定的索引的长度为1的单元格内的最终结果的数值向量
data: a data.frame containing a single row with the index of the table cell of interest
data:数据框包含单列的索引表单元格的兴趣
primSupp: logical vector of length 1 that is 'TRUE' if the cell is a primary sensitive cell and
primSupp:逻辑向量的长度为1,那就是TRUE,如果单元格是一个主要的敏感单元,
secondSupp: logical vector of length 1 that is 'TRUE' if the cell is a secondary
secondSupp:逻辑向量的长度为1,即TRUE如果单元格是次要的
注意----------Note----------
Important: the i-th element of argument characteristics is uses as the desired characteristic for the dimensional variable specified at the i-th position of argument varNames!
重要提示:i个元素的参数characteristics使用所需的特性的三维变量在i个位置参数varNames!
(作者)----------Author(s)----------
Bernhard Meindl <a href="mailto:bernhard.meindl@statistik.gv.at">bernhard.meindl@statistik.gv.at</a>
实例----------Examples----------
## Not run: [#不运行:]
# load protected data (as created in the example[加载受保护的数据(在本例中创建]
of \code{\link{protectTable}})
sp <- searchpaths()
fn <- paste(sp[grep("sdcTable", sp)], "/data/protectedData.RData", sep="")
protectedData <- get(load(fn))
characteristics <- c('male', 'D')
varNames <- c('gender', 'region')
verbose <- TRUE
info <- cellInfo(protectedData, characteristics, varNames, verbose)
# show the info about this cell[关于该单元格中显示的信息]
str(info)
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|