set_options: Set Default Options for 'treePlotArea'

View source: R/options.R

set_optionsR Documentation

Set Default Options for treePlotArea

Description

Just convenience function for options. treePlotArea has a set of default options to define the columns of the data.frames that are passed to get_correction_factors. See get_defaults for a description of these options.

Usage

set_options(...)

Arguments

...

See options. Leave empty to initialize the defaults if need be.

Value

Invisibly TRUE.

See Also

Other option functions: get_defaults()

Examples

# Set the default
set_options()
getOption("treePlotArea")
# Overwrite some
option_list <- list(angle_counts = list(dbh = "diameter"),
                    boundaries = list(boundary_status = "boundart_stat"))
set_options(angle_counts = option_list[["angle_counts"]],
            boundaries = option_list[["boundaries"]])
getOption("treePlotArea")$angle_counts$dbh
# restore default
option_list <- get_defaults()
set_options(angle_counts = option_list[["angle_counts"]],
            boundaries = option_list[["boundaries"]])
getOption("treePlotArea")$angle_counts$dbh

treePlotArea documentation built on June 22, 2024, 6:57 p.m.