eco_run_all: Eco benefits for multiple trees

Description Usage Arguments Examples

Description

This function calculates the benefits for an entire dataset, sometimes called a tree inventory. This works similar to i-Trees Eco software where the user supplies data, the common name field, the botanical name field, the dbh field, and the region. All calculations are done on unique species/dbh pairs to avoid redundant computation and speed up the calculation.

Usage

1
2
eco_run_all(data, common_col, botanical_col, dbh_col, region, n = 0.8,
  unit = "in", print_time = NULL)

Arguments

data

Path to csv file containing tree inventory.

common_col

The name of the column containing common names.

botanical_col

The name of the column containing botanical names.

dbh_col

The name of the column containing dbh values.

region

Region code, see species or benefits.

n

Guessing threshold from 0.0 to 1.0, defaults at 0.8.

unit

The unit of measurement for DBH, either "in" for inches or "cm" for centimeters. Defaults to inches.

print_time

Logical TRUE or FALSE for printing the elapsed time.

Examples

1
2
3
4
5
6
7
8
# Add common name (typically not needed for a real inventory)
trees$common_name <- "black cherry"

# Guess the botanical name based on the common names
trees$botanical_name <- eco_guess(trees$common_name, "botanical")

# Run the benefits
eco_run_all(trees, "common_name", "botanical_name", "Girth", "PiedmtCLT")

tyluRp/treeco documentation built on May 26, 2019, 5:40 p.m.