Vectors

sites <- c("a", "a", "b", “c”)
density_ha <- c(2.8, 3.2, 1.5, 3.8)
mean(density_ha)
max(density_ha)
min(density_ha)
sum(density_ha)
density_ha <- c(2.8, 3.2, 1.5, 3.8)
area_ha <- c(3, 5, 1.9, 2.7)
total_number <- density_ha * area_ha

Do Exercise 8 - Shrub Volume Vectors.

Data frames

surveys <- data.frame(sites, density_ha, area_ha)

Importing data

shrub_data <- read.csv('data/shrub-dimensions-labeled.csv')

File paths

Do Exercise 9 - Shrub Volume Data Frame.