collapse_bins: Collapse Percent Cover Bins to a new specified range

View source: R/collapse_bins.R

collapse_binsR Documentation

Collapse Percent Cover Bins to a new specified range

Description

Takes a vector of percent cover data and a vector of new bin ranges to collapse the data

Usage

collapse_bins(percent_cover, new_bins)

Arguments

percent_cover

a character vector of percent cover data in ranges formatted as "lower-upper" or a single number a a character

new_bins

vector of new bins formatted as a string with (eg c("0", "1-5", "6-100")). Ranges must be in the format "lower-upper" or a single number as a character.


ailich/mytools documentation built on Jan. 7, 2023, 11:16 a.m.