rm_site_noobs: Remove site that has no observations of any species

View source: R/utils.R

rm_site_noobsR Documentation

Remove site that has no observations of any species

Description

This function will remove site that has no observations in a site by species data frame.

Usage

rm_site_noobs(df, warn = FALSE)

Arguments

df

A data frame in wide form, i.e. site by species data frame, with site names as row name.

warn

Whether to warn when any site has no species? Default is FALSE.

Value

A site by species data frame.

Author(s)

Daijiang Li


daijiang/phyr documentation built on Feb. 25, 2024, 3:01 a.m.