| verify {secr} | R Documentation |
Check that the data and attributes of an object are internally consistent to avoid crashing functions such as secr.fit
## Default S3 method: verify(object, report, ...) ## S3 method for class 'traps': verify(object, report = 2, ...) ## S3 method for class 'capthist': verify(object, report = 2, ...) ## S3 method for class 'mask': verify(object, report = 2, ...)
object |
an object of class 'traps', 'capthist' or 'mask' |
report |
integer code for level of reporting to the console. 0 = no report, 1 = errors only, 2 = full. |
... |
other arguments (not used) |
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.
verify.capthist
verify.traps
verify.mask
Earlier errors may mask later errors: fix & re-run.
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.
Full reporting is the same as 'errors only' except that a message is
posted when no errors are found.
Murray Efford murray.efford@otago.ac.nz
data(captdata) 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)