reduce.capthist(secr)
reduce.capthist()所属R语言包:secr
Combine Occasions Or Convert Detector Types
结合场合或转换检测器类型
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Combine columns (occasions) in a capthist object to create a new data set, possibly converting between detector types
在capthist对象创建一个新的数据集,可能是探测器类型之间的转换,合并列(次)
用法----------Usage----------
## S3 method for class 'capthist'
reduce(object, columns = NULL, outputdetector =
detector(traps(object)), select='last', dropunused = TRUE,
verify = TRUE, sessions = NULL, by = 1, ...)
参数----------Arguments----------
参数:object
capthist object
capthist对象
参数:columns
list in which each component is a vector of subscripts for occasions to be pooled
列表,其中每个组件是一个向量的下标,以汇集的场合
参数:outputdetector
character value giving detector type for output
字符值的检测器类型的输出
参数:select
character value for method to resolve conflicts
字符值的方法来解决冲突
参数:dropunused
logical, if TRUE any never-used detectors are dropped
逻辑,如果是TRUE从来没有使用的探测器被丢弃
参数:verify
logical, if TRUE the verify function is applied to the output
逻辑,如果为true,verify函数被应用到输出
参数:sessions
vector of session indices or names (optional)
矢量的会话指数或名称(可选)
参数:by
number of old occasions in each new occasion
一些老的场合在每一个新的日子
参数:...
other arguments (not used currently)
其他参数(目前未使用)
Details
详细信息----------Details----------
The first component of columns defines the columns of object for new occasion 1, the second for new occasion 2, etc. If columns is NULL then all occasions are output. Subscripts in a component of columns that do not match an occasion in the input are ignored. When the output detector is one of the trap types ("single", "multi"), reducing capture occasions can result in locational ambiguity for individuals caught on more than one occasion, and for single-catch traps there may also be conflicts between individuals at the same trap. The method for resolving conflicts among "multi" detectors is determined by select which should be one of "first", "last" or "random". With "single" detectors select is ignored and the method is: first, randomly select* one trap per animal per day; second, randomly select* one animal per trap per day; third, when collapsing multiple days use the first capture, if any, in each trap.
columns的第一部分定义列object如果columns是NULL,那么新的机会1,第二个为新的场合2,等所有的场合都输出。下标中的一个组成部分columns不匹配的场合中输入将被忽略。当输出检测器是一个陷阱类型(单,多),减少捕获的场合可以导致在区位歧义的个人夹在多个场合,单捕捉陷阱也可能冲突个人之间在同样的陷阱。的方法解决多探测器之间的冲突是由select这应该是一个第一,最后或随机。 单探测器select被忽略的方法是:首先,随机选择一个陷阱每天每只动物;第二,随机选择*每一天每一个动物陷阱;第三多天的崩溃,当使用第一次捕捉,如果有的话,在每个陷阱。
Usage data in the traps attribute are also pooled if present; a trap is considered "used" on a pooled occasion if it was used on any contributing occasion.
如果目前使用数据traps属性也汇集,汇集场合的“拿来主义”,如果它被用来任何贡献场合上,被认为是一个陷阱。
* i.e., in the case of a single capture, use that capture; in the case of multiple "competing" captures draw one at random.
*例如,在一个捕捉的情况下,使用该采集多个“竞争”捕捉的情况下,画一个随机。
If columns is not provided then old occasions are grouped into new occasions as indicated by the by argument. For example, if there are 15 old occasions and by = 5 then new occasions will be formed from occasions 1:5, 6:10, and 11:15. A warning is given when the number of old occasions is not a multiple of by as then the final new occasion will comprise fewer old occasions.
columns如果不提供旧的场合分组到新的场合表示by参数。例如,如果有15个旧的场合和by = 5然后新的场合将被形成的场合1:5,6:10,和11点一十五分。给出一条警告信息时,一些老的场合是不by那么最终的新的机会,包括老的场合少的多。
A special use of the by argument is to combine all occasions into one for each session in a multi-session dataset. This is done by setting by = "all".
by参数的一个特殊用途的是结合各种场合,每个会话一个多会话数据集。这是通过设置by = "all"。
值----------Value----------
An object of class capthist with number of columns equal to length(occasions). The detector type is inherited from object unless a new type is specified with the argument outputdetector.
类的一个对象capthist与数列等于length(occasions)。检测器类型继承自object,除非指定了一个新的类型的参数outputdetector。
参见----------See Also----------
capthist, subset.capthist
capthist,subset.capthist
实例----------Examples----------
tempcapt <- sim.capthist (make.grid(nx = 6, ny = 6), nocc = 6)
class(tempcapt)
pooled.tempcapt <- reduce(tempcapt, col = list(1,2:3,4:6))
summary (pooled.tempcapt)
pooled.tempcapt2 <- reduce(tempcapt, by = 2)
summary (pooled.tempcapt2)
## collapse multi-session dataset to single-session 'open population'[#倍数多会话数据集到单会话人口“开放”]
onesess <- join(reduce(ovenCH, by = "all"))
summary(onesess)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|