dry_wet: Parsing dry and wet measurements

View source: R/dry_wet.R

dry_wetR Documentation

Parsing dry and wet measurements

Description

Filter dataframe based on required biomass type (dry or wet).

Usage

dry_wet(dats, biomass_type)

Arguments

dats

Input data

biomass_type

If biomass should be wet or dry, or most common

Value

Dataframe with filtered biomass type, and chosen one (dry or wet)

Examples

# Data holding both kinds of biomass
dats <-
  data.frame(species = c("sp_a", "sp_b"),
             stage = "larva",
             size_col = c(3.1, 2.2),
             biomass_col = c(0.4, 0.2),
             biomass_type = c("dry", "wet"))

# Keep the dry measurements only
dry_wet(dats, biomass_type = "dry")

hellometry documentation built on Nov. 11, 2026, 5:06 p.m.