ace_join_dens: Join estimated ABMI single-deployment density values

Description Usage Arguments Details Value Examples

View source: R/ace_join_dens.R

Description

Join estimated ABMI single-deployment density values

Usage

1
ace_join_dens(x, species, samp_per, nest = FALSE)

Arguments

x

a dataframe of deployments of interest, including at minimum the deployment id and year

species

character; vector of species of interest (common name). If left blank, all species available will be returned.

samp_per

character; vector of sampling period of interest. Available periods include the years 2013-2019, inclusive. If left blank, estimates from all available sampling periods will be returned.

nest

logical; if TRUE, a dataframe nested by species (common name) is returned.

Details

valid values for argument species currently are:

valid values for argument samp_per currently are:

Value

Tidy dataframe of deployments in sampling period(s) specified with two appended columns: species and estimated density.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(dplyr)
# Dataframe of deployment names and year
df <- data.frame(name = c("ABMI-633-NE",
                          "ABMI-633-NW",
                          "ABMI-633-SE",
                          "ABMI-633-SW"),
                 samp_per = c(2015, 2015, 2015, 2015)) %>%
                 mutate_if(is.factor, as.numeric)
# Join density estimates (e.g. Moose in 2015)
df_densities <- ace_join_dens(df, species = "Moose", samp_per = "2015", nest = FALSE)

mabecker89/abmi.camera.extras documentation built on Nov. 19, 2020, 7:17 p.m.