census_2_ex {forestecology} | R Documentation |
Example input census data for package use
Description
This is an example second census to be analyzed with the package.
Usage
census_2_ex
Format
A tibble
- ID
Tree identification number. This identifies an individual tree and can be used to connect trees between the two censuses.
- sp
Species of the individual
- gx
x-coordinate meters from reference point
- gy
y-coordinate meters from reference point
- date
Date the stem was measured
- codes
Code for additional information on the stem: M means the main stem of the individual tree and R means the stem was lost, but the tag was moved to another stem greater than DBH cutoff, this stands for resprout.
- dbh
Diameter at breast height of the tree in cm
See Also
Other example data objects:
blocks_ex
,
census_1_ex
,
census_2008_bw
,
census_2014_bw
,
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(dplyr)
library(stringr)
growth_ex <-
compute_growth(
census_1 = census_1_ex %>%
mutate(sp = to_any_case(sp) %>% factor()),
census_2 = census_2_ex %>%
filter(!str_detect(codes, "R")) %>%
mutate(sp = to_any_case(sp) %>% factor()),
id = "ID"
)