
Format tree-level data from nested plots
Nested.Rd
This function processes tree-level data from nested plots, combining centroid information with tree measurements using a unique ID from these datasets.
Value
A list containing two elements:
- plotTree
A data frame with formatted tree-level data
- xyTree
A data frame with plot ID and coordinates
Details
The function performs the following steps:
Converts centroid data to WGS84 projection
Creates a buffer around centroids
Filters tree data for alive trees
Prompts user for column selections and additional information
Processes tree height data
Combines tree data with centroid coordinates
Examples
if (FALSE) { # \dontrun{
# This example requires interactive input and spatial data files
# Load centroid data (sf object)
centroid_data <- sf::st_read(system.file("extdata", "SampleCentroid.shp", package = "Plot2Map"))
# Load tree data
tree_data <- read.csv(system.file("extdata", "SampleTreeNested.csv", package = "Plot2Map"))
# Process the nested plot data
nested_data <- Nested(centroid_data, tree_data)
} # }