setInfo(sdcTable)
setInfo()所属R语言包:sdcTable
set information of <a href="sdcProblem-class.html">sdcProblem-class</a>- or <a href="problemInstance-class.html">problemInstance-class</a> objects
设置信息<a href="sdcProblem-class.html"> sdcProblem类</ A> - <a href="problemInstance-class.html"> problemInstance类</ a>的对象
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Function getInfo is used to query information from sdcProblem-class- or problemInstance-class objects
功能getInfosdcProblem-class - problemInstance-class对象的查询信息
用法----------Usage----------
setInfo(object, type, index, input)
参数----------Arguments----------
参数:object
an object of class sdcProblem-class or problemInstance-class
对象类sdcProblem-class或problemInstance-class,
参数:type
a character vector of length 1 specifying the the information that should be changed or modified, valid choices are:
字符向量的长度为1,指定的信息应变更或修改,有效的选择是:
lb: slot 'lb' of input object if it is of class problemInstance-class or slot 'lb' within slot 'problemInstance' if object is of class sdcProblem-class
lb槽LB输入object如果如果它是类problemInstance-class或插槽磅内槽“problemInstance”的object类sdcProblem-class
ub: slot 'ub' of input object if it is of class problemInstance-class or slot 'ub' within slot 'problemInstance' if object is of class sdcProblem-class
ub:槽“UB”,输入object如果如果它是类problemInstance-class或插槽的军装内槽“problemInstance”object类sdcProblem-class
LPL: slot 'LPL' of input object if it is of class problemInstance-class or slot 'LPL' within slot 'problemInstance' if object is of class sdcProblem-class
LPL:槽“LPL”输入object,如果它是类problemInstance-class或插槽的LPL内插槽的problemInstance“如果object类sdcProblem-class
SPL: slot 'SPL' of input object if it is of class problemInstance-class or slot 'SPL' within slot 'problemInstance' if object is of class sdcProblem-class
SPL:槽“SPL”,输入object,如果它是类problemInstance-class或插槽“SPL”内槽“problemInstance”如果object是类sdcProblem-class
UPL: slot 'UPL' of input object if it is of class problemInstance-class or slot 'UPL' within slot 'problemInstance' if object is of class sdcProblem-class
UPL:槽“UPL”输入object,如果它是类problemInstance-class或插槽UPL内插槽的problemInstance“如果object是类sdcProblem-class
sdcStatus: slot 'sdcStatus' of input object if it is of class problemInstance-class or slot 'sdcStatus' within slot 'problemInstance' if object is of class sdcProblem-class </ul>
sdcStatus插槽的sdcStatus输入object,如果它是类problemInstance-class或的插槽的sdcStatus“内槽”problemInstance“如果object类sdcProblem-class </ ul>
参数:index
numeric vector defining cell-indices for which which values in a specified slot should be changed|modified
数字矢量定义的单元指数值在指定的时隙应改变|修改
参数:input
numeric or character vector depending on argument type with its length matching the length of argument index
数字或字符向量,根据参数type的长度参数index的匹配,其长度
character vector if type matches 'sdcStatus'
字符向量类型相匹配sdcStatus
a numeric vector if type matches 'lb', 'ub', 'LPL', 'SPL' or 'UPL' </ul>
一个数值向量类型相匹配磅,UB“,”LPL“,”杀破狼“或”UPL“</ P>
值----------Value----------
a sdcProblem-class- or problemInstance-class object
sdcProblem-class - problemInstance-class对象
(作者)----------Author(s)----------
Bernhard Meindl <a href="mailto:bernhard.meindl@statistik.gv.at">bernhard.meindl@statistik.gv.at</a>
实例----------Examples----------
## Not run: [#不运行:]
# load primary suppressed data (as created in the example[加载主抑制的数据(如在示例中创建]
of \code{\link{primarySuppression}})
sp <- searchpaths()
fn <- paste(sp[grep("sdcTable", sp)], "/data/problemWithSupps.RData", sep="")
problem <- get(load(fn))
# which is the overall total?[这是总数的吗?]
index.tot <- which.max(getInfo(problem, 'freq')
index.tot
# the anonymization state of the total is[匿名状态的总]
print(getInfo(problem, type='sdcStatus')[index.tot])
# we want this cell to never be suppressed[我们希望该单元格,永远不会被抑制]
problem <- setInfo(problem, type='sdcStatus', index=index.tot, input='z')
print(getInfo(problem, type='sdcStatus')[index.tot])
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|