wt_format_occupancy: Format WildTrax report for occupancy modelling.

View source: R/convenience-functions.R

wt_format_occupancyR Documentation

Format WildTrax report for occupancy modelling.

Description

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

## Not run: 
dat.occu <- wt_format_occupancy(dat, species="CONI", siteCovs=NULL)
mod <- occu(~ 1 ~ 1, dat.occu)

## End(Not run)

mabecker89/wildRtrax documentation built on Feb. 5, 2024, 8:50 a.m.