rm_sp_noobs: Remove species that not observed in any site

View source: R/utils.R

rm_sp_noobsR Documentation

Remove species that not observed in any site

Description

Remove species that not observed in any site

Usage

rm_sp_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 species does not occur in at least one site? Default is FALSE.

Value

A site by species data frame.

Author(s)

Daijiang Li

This function will remove species that has no observations in any site.


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