找回密码
 注册
查看: 401|回复: 0

R语言 sdcTable包 getInfo()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-29 23:23:27 | 显示全部楼层 |阅读模式
getInfo(sdcTable)
getInfo()所属R语言包:sdcTable

                                        query information from objects
                                         查询信息对象

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Function getInfo is used to query information from objects of class sdcProblem-class, problemInstance-class or safeObj-class
功能getInfo从的类sdcProblem-class的对象查询信息,problemInstance-class或safeObj-class


用法----------Usage----------


  getInfo(object, type)



参数----------Arguments----------

参数:object
a sdcProblem-class object, problemInstance-class object or safeObj-class object.
sdcProblem-class对象,problemInstance-class的对象或safeObj-class对象的。


参数:type
a character vector of length 1 specifying the information which should be returned.   
字符向量的长度为1,指定的信息应当返还。

if argument object is of class sdcProblem-class or problemInstance-class, valid choices are:   
如果参数object类sdcProblem-class或problemInstance-class,有效的选择是:

lb: slot 'lb' of input object if it is of class problemInstance-class or this slot within slot 'problemInstance' if object is of class sdcProblem-class  
lb:槽“磅”输入object如果是类problemInstance-class或插槽内槽“problemInstance”的,如果object类sdcProblem-class

ub: slot 'ub' of input object if it is of class problemInstance-class or this slot 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 this slot within slot 'problemInstance' if object is of class sdcProblem-class  
LPL:插槽的LPL输入object如果是类problemInstance-class或插槽内槽“problemInstance”的,如果object是的类sdcProblem-class

SPL: slot 'SPL' of input object if it is of class problemInstance-class or this slot within slot 'problemInstance' if object is of class sdcProblem-class  
SPL:槽“SPL”,输入object,如果它是类problemInstance-class或插槽内槽“problemInstance”如果object类sdcProblem-class

UPL: slot 'UPL' of input object if it is of class problemInstance-class or this slot within slot 'problemInstance' if object is of class sdcProblem-class  
UPL:槽“UPL”输入object,如果它是类problemInstance-class或插槽内槽“problemInstance”如果object类sdcProblem-class

sdcStatus: slot 'sdcStatus' of input object if it is of class problemInstance-class or this slot within slot 'problemInstance' if object is of class sdcProblem-class  
sdcStatus:插槽的sdcStatus输入object如果是类problemInstance-class或插槽内槽“problemInstance”的,如果object是的类sdcProblem-class

freq: slot 'freq' of input object if it is of class problemInstance-class or this slot within slot 'problemInstance' if object is of class sdcProblem-class  
freq:槽“频率”输入object,如果它是类problemInstance-class或插槽内槽“problemInstance”如果object类sdcProblem-class

strID: slot 'strID' of input object if it is of class problemInstance-class or this slot within slot 'problemInstance' if object is of class sdcProblem-class  
strID:槽“strID”输入object,如果它是类problemInstance-class或插槽内槽“problemInstance”如果object类sdcProblem-class

numVars: slot 'numVars' of input object if it is of class problemInstance-class or this slot within slot 'problemInstance' if object is of class sdcProblem-class  
numVars:槽“numVars输入object如果是类problemInstance-class或插槽内槽”problemInstance“的,如果object是的类sdcProblem-class

w: slot 'w' of input object if it is of class problemInstance-class or this slot within slot 'problemInstance' if object is of class sdcProblem-class  
w:槽“W”输入object,如果它是类problemInstance-class或本插槽内槽“problemInstance”如果object类sdcProblem-class




if argument object is of class safeObj-class, valid choices are:   
如果参数object类safeObj-class,有效的选择是:

finalData: slot 'finalData' of input object of class safeObj-class  
finalData插槽的FinalData的输入object类safeObj-class

nrNonDuplicatedCells: slot 'nrNonDuplicatedCells' of input object of class safeObj-class  
nrNonDuplicatedCells:槽“nrNonDuplicatedCells输入object类safeObj-class

nrPrimSupps: slot 'nrPrimSupps' of input object of class safeObj-class  
nrPrimSupps:槽“nrPrimSupps输入object类safeObj-class

nrSecondSupps: slot 'nrSecondSupps' of input object of class safeObj-class  
nrSecondSupps:槽“nrSecondSupps输入object类safeObj-class

nrPublishableCells: slot 'nrPublishableCells' of input object of class safeObj-class  
nrPublishableCells:槽“nrPublishableCells输入object类safeObj-class

suppMethod: slot 'suppMethod' of input object of class safeObj-class
suppMethod:槽“suppMethod的的的输入object类safeObj-class

</ul>
</ ul>


值----------Value----------

manipulated data dependend on arguments object and type
操纵数据的时效关系的论据object和type


(作者)----------Author(s)----------



Bernhard Meindl <a href="mailto:bernhard.meindl@statistik.gv.at">bernhard.meindl@statistik.gv.at</a>




实例----------Examples----------


## Not run: [#不运行:]
# load problem (as it was created in the example[负载问题(因为它是在示例中创建]
of \code{\link{makeProblem}})
sp <- searchpaths()
fn <- paste(sp[grep("sdcTable", sp)], "/data/problem.RData", sep="")
problem <- get(load(fn))

# problem is an object of class \code{\link{sdcProblem-class}}[问题是一个对象类\代码{\的链接{sdcProblem级}}]
print(class(problem))

for ( slot in c('lb','ub','LPL','SPL','UPL','sdcStatus',
                'freq', 'strID', 'numVars', 'w') ) {
cat('slot', slot,':\n')
        print(getInfo(problem, type=slot))
}

# extracting information for objects of class \code{\link{safeObj-class}}[提取信息的对象的类\代码{\的链接{safeObj级}}]
fn <- paste(sp[grep("sdcTable", sp)], "/data/protectedData.RData", sep="")
protectedData <- get(load(fn))
for ( slot in c('finalData', 'nrNonDuplicatedCells', 'nrPrimSupps',
                'nrSecondSupps', 'nrPublishableCells', 'suppMethod') ) {
        cat('slot', slot,':\n')
        print(getInfo(protectedData, type=slot))
}

## End(Not run)[#(不执行)]

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2024-11-30 03:43 , Processed in 0.031060 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表