Description Usage Arguments Examples
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.
1 2 | eco_run_all(data, common_col, botanical_col, dbh_col, region, n = 0.8,
unit = "in", print_time = NULL)
|
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 |
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. |
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.