wt_replace_tmtt: Replace 'TMTT' abundance entries with model-predicted values.

View source: R/convenience-functions.R

wt_replace_tmttR Documentation

Replace 'TMTT' abundance entries with model-predicted values.

Description

This function uses a lookup table of model-predicted values to replace 'TMTT' entries in listener-processed ARU data from WildTrax. The model-predicted values were produced using estimated abundances for 'TMTT' entries in mixed effects model with a Poisson distribution and random effects for species and observer.

Usage

wt_replace_tmtt(data, calc = "round")

Arguments

data

Dataframe of WildTrax observations, for example the summary report.

calc

Character; method to convert model predictions to integer ("round", "ceiling", or "floor"). See ?round() for details.

Value

A dataframe identical to input with 'TMTT' entries in the abundance column replaced by integer values.

Examples

## Not run: 
dat.tmtt <- replace_tmtt(dat, calc="round")

## End(Not run)

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