verify(secr)
verify()所属R语言包:secr
Check SECR Data
检查SECR数据
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Check that the data and attributes of an object are internally consistent to avoid crashing functions such as secr.fit
检查的数据和对象的属性内部是一致的,避免碰撞功能,如secr.fit
用法----------Usage----------
## Default S3 method:[默认方法]
verify(object, report, ...)
## S3 method for class 'traps'
verify(object, report = 2, ...)
## S3 method for class 'capthist'
verify(object, report = 2, tol = 0.01, ...)
## S3 method for class 'mask'
verify(object, report = 2, ...)
参数----------Arguments----------
参数:object
an object of class "traps", "capthist" or "mask"
一个对象类“陷阱”,“capthist”或“面具”
参数:report
integer code for level of reporting to the console. 0 = no report, 1 = errors only, 2 = full.
整数代码到控制台报告水平。 0 =没有报告,1 =只,2 =完整的错误。
参数:tol
numeric tolerance for deviations from transect line (m)
数字容忍样线的偏离(M)
参数:...
other arguments (not used)
其他参数(未使用)
Details
详细信息----------Details----------
Checks are performed specific to the class of "object". The default method is called when no specific method is available (i.e. class not "traps", "capthist" or "mask"), and does not perform any checks.
检查内容包括特定的“对象”的类。默认的方法被调用时没有具体的方法是可行的(即类“陷阱”,“capthist”或“面具”),并且不执行任何检查。
verify.capthist
verify.capthist
No "traps" component
没有“陷阱”组件
Invalid "traps" component reported by verify.traps
无效的“陷阱”部分报告的verify.traps
No live detections
没有现场检测
Missing values not allowed in capthist
遗漏值中不允许capthist
Live detection(s) after reported dead
据报道,死亡后,现场检测(S)
More than one capture in single-catch trap(s)
一个以上的单捕捉陷阱捕获(S)
More than one detection per detector per occasion at proximity detector(s)
一个以上的每一次检测每个检测器在接近度检测器()
Signal detector signal(s) less than threshold or invalid threshold
信号检测器信号(s)小于阈值或无效的阈值
Number of rows in "traps" object not compatible with reported detections
报告检测中的行数陷阱对象不兼容
Number of rows in dataframe of individual covariates differs from capthist
个人的变量在数据框的行数从capthist不同
Number of occasions in usage matrix differs from capthist
不同的场合使用矩阵的数量从capthist
Detections at unused detectors
在未使用的检测器的检测
Number of coordinates does not match number of detections ("polygon", "polygonX", "transect" or "transectX" detectors)
数坐标不匹配的检测次数(“多边形”,“polygonX,样或transectX探测器)
Coordinates of detection(s) outside polygons ("polygon" or "polygonX" detectors)
的坐标检测(S)外多边形(多边形或polygonX“的探测器)
Coordinates of detection(s) do not lie on any transect ("transect" or "transectX" detectors)
坐标检测(S)是不会说谎的在任何样(样带或transectX“的探测器)
Row names (animal identifiers) not unique
行的名称(动物标识符)不是唯一的
verify.traps
verify.traps
Missing detector coordinates not allowed
缺少检测坐标不允许
Number of rows in dataframe of detector covariates differs from expected
检测器的协变量数据框的行数与预期不同
Number of detectors in usage matrix differs from expected
在使用矩阵的探测器数不同于预期
Occasions with no used detectors
没有使用探测器的场合
Polygons overlap
多边形重叠
Polygons concave east-west ("polygon" detectors)
多边形凹东西(“多边形”探测器)
PolyID missing or not factor
PolyID丢失或因素
Polygon detector is concave in east-west direction
在东西方向是凹多边形检测
verify.mask
verify.mask
Valid x and y coordinates
有效的x和y坐标
Number of rows in covariates dataframe differs from expected
在协变量数据框的行数与预期不同
Earlier errors may mask later errors: fix & re-run.
可能掩盖先前的错误后的错误修复和重新运行。
值----------Value----------
A list with the component errors, a logical value indicating whether any errors were found. If object contains multi-session data then session-specific results are contained in a further list component bysession.
与组件列表errors,逻辑值,该值指示是否发现任何错误。如果object包含多届的数据,那么会话特定的结果载于进一步的列表组件bysession。
Full reporting is the same as "errors only" except that a message is posted when no errors are found.
完整报告是一样的,只是一个消息发布时,没有发现任何错误的“错误只。
参见----------See Also----------
capthist, secr.fit
capthist,secr.fit
实例----------Examples----------
verify(captdata)
## create null (complete) usage matrix, and mess it up[#创建一个空的(完整)使用矩阵,搞砸了]
temptraps <- make.grid()
usage(temptraps) <- matrix(1, nr = nrow(temptraps), nc = 5)
usage(temptraps)[,5] <- 0
verify (temptraps)
## create mask, and mess it up[#创建一个面具,搞砸了]
tempmask <- make.mask(temptraps)
verify(tempmask)
tempmask[1,1] <- NA
verify(tempmask)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|