This is an example cross validation grid. This is needed to create the focal versus comp data frame and run cross-validated models

blocks_ex

Format

A sf polygons

foldID

Tree identification number. This identifies an individual tree and can be used to connect trees between the two censuses.

geometry

Point location of the individual

See also

Examples

#> Linking to GEOS 3.8.1, GDAL 3.2.1, PROJ 7.2.1
#> #> Attaching package: ‘dplyr’
#> The following objects are masked from ‘package:stats’: #> #> filter, lag
#> The following objects are masked from ‘package:base’: #> #> intersect, setdiff, setequal, union
comp_dist <- 1 ggplot(blocks_ex) + geom_sf() + geom_sf(data = growth_spatial_ex)
focal_vs_comp_ex <- growth_spatial_ex %>% mutate(basal_area = 0.0001 * pi * (dbh1 / 2)^2) %>% create_focal_vs_comp(comp_dist, blocks = blocks_ex, id = "ID", comp_x_var = "basal_area")