Description Usage Arguments Value Examples
Transforms shrub individual data (plant heights and diameters) into species level data (average height and cover).
1 2 | individualshrub2species(x, sampledarea = 20, maxcover = 100,
na.rm = TRUE, sd.H = FALSE)
|
x |
data frame with columns 'plot', 'species', 'H' (height in cm), 'D1' and 'D2' (in cm) |
sampledarea |
sampled area in squared meters |
maxcover |
maximum allowed cover (set to NA to avoid truncation) |
na.rm |
whether to exclude missing values when averaging heights and adding areas |
sd.H |
whether to include the standard deviation of heights in the output |
data frame with columns 'plot', 'species', 'H' (mean height in cm), 'C' (cover in percent)
1 2 3 4 5 6 7 8 | plot = c(1,1,1,1,1)
species = c("Erica arborea","Cistus albidus", "Erica arborea", "Cistus albidus", "Cistus albidus")
H = c(200,50,100,40,30)
D1 = c(140,40,100, 35,30)
D2 = D1
x = data.frame(plot, species, H, D1, D2)
individualshrub2species(x, sampledarea = 4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.