gap_cover: Calculate the number, length, and percent of gaps

View source: R/gap_cover.R

gap_coverR Documentation

Calculate the number, length, and percent of gaps

Description

Calculate the number, length, and percent of gaps by plot or line.

Usage

gap_cover(
  gap_tall,
  tall = FALSE,
  breaks = c(20, 25, 51, 101, 201),
  type = "canopy",
  by_line = FALSE
)

Arguments

gap_tall

Raw tables as imported from TerrADat use gather_gap .

tall

Logical. If TRUE then the returned data frame will be tall rather than wide and will not have observations for non-existent values e.g., if no data fell into a group on a plot, there will be no row for that group on that plot. Defaults to FALSE.

breaks

Vector of all break values. Defaults to 20,25, 51, 100, 200

type

String. Specifies the type of gap calculation "canopy", "basal", "perennial canopy"

by_line

Logical. If TRUR then results will be reported further grouped by line using the LineKey field from the data forms. Defaults to FALSE.


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