get_species_counts_wide: Build a Wide Species count Dataframe

Description Usage Arguments Examples

View source: R/species_counts.R

Description

Uses one of the outputs from get_observed_nights() to calculate totals for number of species present at a GRTS cell or a site ID and then returns a dataframe.

Usage

1

Arguments

nightly_df

Dataframe acoustic bulk dataframe from output of get_observed_nights(). Note: must run seperately for MANUAL and AUTOMATIC nights dataframes.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## Not run: 

# MANUAL
manual_species_totals_w_   = get_species_counts_wide(manual_nights_df_)
# --- totals at sites
manual_species_sites_df_w_ = manual_species_totals_w_$species_site_id_df
# --- totals at GRTS cell id
manual_species_grts_df_w_  = manual_species_totals_w_$species_grts_df

# AUTOMATIC
auto_species_totals_w_   = get_species_counts_wide(auto_nights_df_)
# --- totals at sites
auto_species_sites_df_w_ = auto_species_totals_w_$species_site_id_df
# --- totals at GRTS cell id
auto_species_grts_df_w_  = auto_species_totals_w_$species_grts_df


## End(Not run)

talbertc-usgs/NABatR documentation built on April 22, 2020, 8:23 p.m.