Skip to contents

Aggregate Individual Fish Records to Summarized Format (tidyverse version)

Usage

aggregate_from_individual_tidy(
  data,
  treatment_col = "tmt",
  replicate_col = "tank",
  score_col = "score",
  total_col = "total"
)

Arguments

data

A data frame containing individual fish records

treatment_col

Name of the column containing treatment groups (default: "tmt")

replicate_col

Name of the column containing tank/replicate IDs (default: "tank")

score_col

Name of the column containing scores (default: "score")

total_col

Name of the column to be created for total counts (default: "total")

Value

A data frame with aggregated counts per replicate