
Calculate New Tree Positions
calculate_new_tree_position.RdThis function calculates the coordinates of trees based on their azimuth and distance from the plot center, and optionally saves the results in sf format.
Arguments
- plot
The plot number for which tree positions are calculated (numeric).
- save
Logical (
TRUEorFALSE), indicating whether to save the results to a SHP file.- crs
Coordinate reference system in EPSG format (default is 2180, which is the PUWG 1992 system for Poland).
- dataset
Path to the CSV file containing tree data with columns:
plot_id,azimuth,distance.- plot_center_x
The x-coordinate of the plot center (numeric).
- plot_center_y
The y-coordinate of the plot center (numeric).