wt_make_wide: Convert to a wide survey by species dataframe.

View source: R/convenience-functions.R

wt_make_wideR Documentation

Convert to a wide survey by species dataframe.

Description

This function converts a long-formatted report into a wide survey by species dataframe of abundance values. This function is best preceded by thewt_tidy_species and wt_replace_tmtt functions to ensure 'TMTT' and amphibian calling index values are not converted to zeros.

Usage

wt_make_wide(data, sound = "all")

Arguments

data

WildTrax main report or tag report from the wt_download_report() function.

sound

Character; vocalization type(s) to retain ("all", "song", "call", "non-vocal"). Can be used to remove certain types of detections. Defaults to "all" (i.e., no filtering).

Value

A dataframe identical to input with observations of the specified groups removed.

Examples

## Not run: 
dat.clean <- wt_tidy_species(dat)
dat.tmtt <- wt_replace_tmtt(dat.clean)
dat.wide <- wt_make_wide(dat.tmtt, sound="all")

## End(Not run)

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