blocks_ex {forestecology}R Documentation

Example cross validation grid

Description

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

Usage

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

Other example data objects: census_1_ex, census_2008_bw, census_2014_bw, census_2_ex, comp_bayes_lm_ex, focal_vs_comp_ex, growth_ex, growth_spatial_ex, growth_toy, species_bw, study_region_bw, study_region_ex

Examples

library(ggplot2)
library(sf)
library(dplyr)

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")

[Package forestecology version 0.2.0 Index]