View source: R/convenience-functions.R
wt_format_occupancy | R Documentation |
This function formats the summary report from the wt_download_report()
function into an unmarked object for occupancy modelling. The current version only includes formatting for the ARU sensor and for single species single season models.
wt_format_occupancy(data, species, siteCovs = NULL)
data |
Summary report of WildTrax observations from the |
species |
Character; four-letter alpha code for the species desired for occupancy modelling. |
siteCovs |
Optional dataframe of site covariates. Must contain a column with the same values as the location field in the data, with one row per unique value of location (i.e., one row per site). |
An object of class unmarkedFrameOccu. See ?unmarked::unmarkedFrameOccu
for details.
## Not run:
dat.occu <- wt_format_occupancy(dat, species="CONI", siteCovs=NULL)
mod <- occu(~ 1 ~ 1, dat.occu)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.