get_species_counts_wide: Build a Wide Species count Dataframe

View source: R/species_counts.R

get_species_counts_wideR Documentation

Build a Wide Species count Dataframe

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

get_species_counts_wide(nightly_df)

Arguments

nightly_df

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

Examples


## 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)


usgs/nabatr documentation built on Jan. 28, 2024, 7:10 a.m.