lf.aggregate: Aggregate length counts data

View source: R/lf.aggregate.R

lf.aggregateR Documentation

Aggregate length counts data

Description

lf.aggregate aggregates counts data by year, quarter, lat, lon, and user-sepcified length bins

Usage

lf.aggregate(LC, fcol, lcol, bins, new_bins, LengthOnly = FALSE, minN = 0)

Arguments

LC

The length frequency data frame input; must include four columns: lat, lon, year, and quarter

fcol

The first column in the data frame with length frequency info

lcol

The last column in the data frame with length frequency info

bins

Names of all bins included in LF

new_bins

Names of all bins included in LF

LengthOnly

Whether aggregate data by new length bins only

minN

minimal sample size required for a year-quarter-lat-lon stratum


HaikunXu/RegressionTree documentation built on Jan. 25, 2025, 12:08 a.m.