Description Usage Arguments Details Value Examples
View source: R/ace_join_dens.R
Join estimated ABMI single-deployment density values
1 | ace_join_dens(x, species, samp_per, nest = FALSE)
|
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. |
valid values for argument species
currently are:
White-tailed Deer
Mule deer
Moose
Elk (wapiti)
Black Bear
Coyote
Pronghorn
Snowshoe Hare
Woodland Caribou
Canada Lynx
Gray Wolf
valid values for argument samp_per
currently are:
2013
2014
2015
2016
2017
2018
2019
Tidy dataframe of deployments in sampling period(s) specified with two appended columns: species and estimated density.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.