check_strata: Check strata lookup table and put it into a standard form

View source: R/tile_functions.R

check_strataR Documentation

Check strata lookup table and put it into a standard form

Description

This function is used by get_stratum_counts. It checks that:

  • The object is a data frame with (at least) three columns labelled: label, lowerht, upperht. Column order and case of names does not matter.

  • All stratum upper heights are greater than lower heights.

  • No two strata overlap (gaps between strata are permitted).

An error results if any of these conditions are not met.

Usage

check_strata(strata)

Arguments

strata

A data frame of strata definitions.

Value

A data frame in standard form with (at least) columns: label, lowerht, upperht, and rows ordered by ascending stratum heights.


mbedward/CERMBlidar documentation built on April 10, 2024, 2:05 p.m.