match_trees: Match trees between years.

View source: R/fieldplot_s3.R

match_treesR Documentation

Match trees between years.

Description

Match trees between years.

Usage

match_trees(
  data,
  stand_id,
  Year = "Year",
  filepath = "matched_trees/",
  save = TRUE,
  skipahead = TRUE
)

Arguments

data

A data.frame

stand_id

A character with the variable name which identifies stands.

Year

A character with the variable name denoting different years.

filepath

Folder in which to store matches (creates a subfolder for each stand)

save

TRUE (default) / FALSE. Saves the transformed coordinates.

Examples

tree_coords2_split <- tree_coords2 %>% group_by(standnumber,standnr2) %>% group_split(.keep = TRUE)
lapply(tree_coords2_split,FUN = match_trees,stand_id = 'standnumber',Year = 'Year')

Silviculturalist/fieldcoordinate documentation built on April 17, 2022, 7:31 a.m.