length-methods(simFrame)
length-methods()所属R语言包:simFrame
Methods for getting the length of an object
获取一个对象的长度的方法
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Get the length of an object.
获取一个对象的长度。
用法----------Usage----------
## S4 method for signature 'SampleSetup'
length(x)
## S4 method for signature 'VirtualContControl'
length(x)
## S4 method for signature 'VirtualNAControl'
length(x)
## S4 method for signature 'VirtualSampleControl'
length(x)
参数----------Arguments----------
参数:x
an object.
一个对象。
值----------Value----------
An integer giving the length of the object. See the “Methods” section below for details.
一个整数,给出对象的长度。 “方法”一节的详细信息。
方法----------Methods----------
signature(x = "SampleSetup") get the number of set up samples.
signature(x = "SampleSetup")得到的成立的样品数。
signature(x = "VirtualContControl") get the number of
signature(x = "VirtualContControl")得到多少
signature(x = "VirtualNAControl") get the number of missing value rates to be used (the length in case of a vector in slot
signature(x = "VirtualNAControl")数遗漏值(在插槽中的一个向量的长度
signature(x = "VirtualSampleControl") get the number of samples
signature(x = "VirtualSampleControl")得到的样本数
(作者)----------Author(s)----------
Andreas Alfons
参见----------See Also----------
length
length
实例----------Examples----------
## load data[#加载数据]
data(eusilcP)
## class "SampleSetup"[#类“SampleSetup”]
# set up samples using group sampling[采用整群抽样的样本]
set <- setup(eusilcP, grouping = "hid", size = 1000, k = 50)
summary(set)
length(set)
## class "ContControl"[#类“ContControl”]
cc <- ContControl(target = "eqIncome",
epsilon = c(0, 0.0025, 0.005, 0.0075, 0.01),
dots = list(mean = 5e+05, sd = 10000))
length(cc)
## class "NAControl"[#类“NAControl”]
nc <- NAControl(target = "eqIncome", NArate = c(0.1, 0.2, 0.3))
length(nc)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|