Method for generic as.data.frame
function that partially reverses make.capthist
.
# S3 method for capthist
as.data.frame(x, row.names = NULL, optional = FALSE, covariates = FALSE,
fmt = c("trapID", "XY"), ...)
# S3 method for traps
as.data.frame(x, row.names = NULL, optional = FALSE, usage = FALSE,
covariates = FALSE, ...)
A data frame or list of data frames (in the case of a multisession input).
For capthist objects --
The core columns are (Session, ID, Occasion, TrapID) or (Session, ID, Occasion, x, y),
depending on the value of fmt
. Additional columns for covariates and signal
strength (detector `signal') are appended to the right.
For traps objects --
The core columns are (x, y). Usage columns are named u1, u2, ..., uS where S is the number of occasions.
capthist
object
unused argument of generic function
unused argument of generic function
logical or a character vector of covariates to export
character string for capture format
logical; if TRUE then usage columns are appended if present
other arguments (not used)
By default individual covariates are not exported. When exported they are repeated for each detection of an individual.
as.data.frame (captdata)
as.data.frame (traps(captdata))
Run the code above in your browser using DataLab