check_boundaries {treePlotArea}R Documentation

Check Validity of Boundaries

Description

There is a boundary (tract 6878, corner 1, boundary 1) in the federal database for the 2012 survey that runs exactly through the plot. If that boundary would be valid, at that corner the term "stand" is not defined.

Usage

check_boundaries(x, stop_on_error = TRUE, clean_data = FALSE)

Arguments

x

A data.frame containing boundaries. It has to have columns named by the contents of either
get_defaults()[["boundaries"]] or
getOption("treePlotArea")[["boundaries"]].
Could be get(data("boundaries", package = "treePlotArea")).

stop_on_error

Throw an error if invalid boundaries are found?

clean_data

Get rid of invalid boundaries?

Details

So we check for such boundaries. These are straight boundaries with identical azimuth values for start and end, and flexed boundaries where azimuth values for either start or end and the azimuth value for the nook are identical and the nook is farther away form the plot than the corresponding start or end.

Value

A (possibly cleansed) data.frame containing boundaries.

See Also

Other boundary functions: get_boundary_polygons()

Examples

data("boundaries", package = "treePlotArea")
validate_data(x = boundaries)
check_boundaries(boundaries)

[Package treePlotArea version 2.1.0 Index]