commit d0b4f40068ad8024e2f827e5f3eecb77d1ea384a Author: adam Date: Tue Jul 7 18:36:56 2026 +0000 Add README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..ba0d4aa --- /dev/null +++ b/README.md @@ -0,0 +1,45 @@ +# Stand equality + +## Mutate individual tree records + +Calculate a new column from values recorded from an individual tree. + +* 5 cm diameter classes +* diameter increment + +```R +df |> + mutate(newColumn = function(Value) +``` + +## Summarise functions + +Calculate a single value for a group using `group_by() |> summarise()` + +* q value +* Gini coefficient +* Shannon Diversity Index +* SDI +* transition period (C&A used cores) +* annual recruitment +* TH (filter just the height data) + +```R +df |> + group_by(Plot, Year) |> + summarise( + measure = function(Value) + ) +``` + +## Mutate aggregate values + +Calculate a new column from group-level aggregate values + +* form class +* form height + +```R +df |> + mutate(newColumn = function(Value) +``` \ No newline at end of file