Hello guys and gals. I am a student and new to R. I have this data set. I have to tidy it up with tidy verse and then calculate the mean height for each species that has at least 10 measurements.
My code so far looks like that
library(tidyverse)
library(dplyr)
biomass2015 <- read_csv(file = "biomass2015_H.csv")
biomass2015_long <- biomass2015 |>
pivot_longer(cols = c("H1","H2","H3","H4","H5","H6","H7","H8","H9","H10"), names_to = "Quadrant", values_to = "Value")
biomass2015_long_noMV <- biomass2015_long |>
drop_na(Value)
biomass2015_long_noMV |>
group_by(species) |>
summarise_at(vars(Value),
list("Mean Height" = mean))
It's for sure messy! My question is how to calculate the mean height for every species with at least 10 measurements. Any tips are more than welcome! 