get_dominant_spp: Get dominant species by functional group for each plant...

View source: R/get_dominant_spp.R

get_dominant_sppR Documentation

Get dominant species by functional group for each plant community

Description

Get a list of the species in each functional group for each plant community, ranked by mean cover across all plots in the plant community. Species must appear in at least one plot to be returned.

Usage

get_dominant_spp(
  data = filter(plot_data_descriptive, PlantCommunity_fuzzy == 3),
  species_cols = colnames(descriptive.df),
  user = "Anna"
)

Arguments

data

Data frame containing all the species to be tallied. Format should match the outputs of plot_data_pull. Filter the input data frame to the plant community of interest to get dominant species by community.

species_cols

Character vector of the column names of all the columns in data containing species cover.

user

Character. User name to generate input data file paths. See data_file_paths for input options.

Value

Data frame of species recorded for each functional group, arranged from highest to lowest mean cover. Functional groups are: C3NativePerenGrass, C3IntroducedPerenGrass, C4NativePerenGrass, C4IntroducedPerenGrass, NativeAnnGrass, IntroducedAnnGrass, NativePerenForb, IntroducedPerenForb, NativeAnnForb, IntroducedAnnForb, Succulent, ShrubSubShrub, Tree


annack84/STMdevelopment documentation built on April 12, 2024, 6:46 p.m.