Skip to contents

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.

Usage

wt_format_occupancy(data, species, siteCovs = NULL)

Arguments

data

Summary report of WildTrax observations from the wt_download_report() function. Currently only functioning for the ARU sensor.

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).

Value

An object of class unmarkedFrameOccu. See ?unmarked::unmarkedFrameOccu for details.

Examples

if (FALSE) {
dat.occu <- wt_format_occupancy(dat, species="CONI", siteCovs=NULL)
mod <- occu(~ 1 ~ 1, dat.occu)
}