Learn R Programming

treePlotArea (version 3.1.0)

set_options: 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(...)

Value

Invisibly

TRUE.

Arguments

...

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

See Also

Other option functions: get_defaults()

Examples

Run this code
# 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

Run the code above in your browser using DataLab