cover_indicators: Percent Cover Indicators, wrapper functions of 'pct_cover'

cover_indicatorsR Documentation

Percent Cover Indicators, wrapper functions of pct_cover

Description

Calculate the percent cover indicators by plot or line for variables or combinations of variables.This is a family of standard indicator variables to examine total foliar cover, bare soil, litter cover, and other ground cover indicators. To compute cover by species, growth habit and duration, or other custom line-point intercept combinations, see pct_cover().

Usage

pct_cover_between_plant(lpi_tall, tall = FALSE, by_line = FALSE)

pct_cover_all_ground(lpi_tall, tall = FALSE, by_line = FALSE)

pct_cover_total_foliar(lpi_tall, tall = FALSE, by_line = FALSE)

pct_cover_bare_soil(lpi_tall, tall = FALSE, by_line = FALSE)

pct_cover_litter(lpi_tall, tall = FALSE, by_line = FALSE)

pct_cover_live(lpi_tall, tall = FALSE, by_line = FALSE, hit = "any", ...)

pct_cover_species(lpi_tall, tall = TRUE, by_line = FALSE, hit = "any")

Arguments

lpi_tall

A tall/long-format data frame. Use the data frame "layers" from the gather.lpi() output.

tall

Logical. If TRUE then output will be in tall format

by_line

Logical. If TRUE then results will be reported further grouped by line using the LineID and LineKey fields from the data forms. Defaults to FALSE.

hit

String. If "first" then only top LPI hits are included. If "any" then any hit values are included.Only used for pct_cover_live and pct_cover_species.

...

Optional bare variable names. Only used for pct_cover_live. Names of variables to include as part of grouping e.g. GrowthHabitSub to calculate percent cover by growth habits or GrowthHabitSub, Duration to calculate percent cover for categories like perennial forbs, annual graminoids, etc.

Value

A tbl of either wide or tall format.

Examples

# Calculate between plant cover, or non-plant species first hit cover
between_plant_cover <- pct_cover_between_plant(lpi_tall,
                                               tall = FALSE,
                                               by_line = FALSE)

# Calculate ground cover, including those under plants
between_plant_cover <- pct_cover_all_ground(lpi_tall,
                                            tall = FALSE,
                                            by_line = FALSE)


smccord/terradactyl documentation built on Dec. 1, 2023, 7:37 p.m.