aggregateCMs: Aggregate dataframe with connectivity matrices according to...

Description Usage Arguments Details Value

Description

Function to aggregate dataframe with connectivity matrices according to new dates, spawning areas, nursery areas.

Usage

1
2
aggregateCMs(dfrCMs, newDates = NULL, newSAs = NULL, newNAs = NULL,
  debug = FALSE)

Arguments

dfrCMs

- dataframe with connectivity matrices, with numbers released and finished

newDates

- vector of reclassified dates to aggregate to (or NULL to keep originals)

newSAs

- vector of reclassified spawning areas to aggregate to (or NULL to keep originals)

newNAs

- vector of reclassified nursery areas to aggregate to (or NULL to keep originals)

debug

- flag to turn on debugging output

Details

input dataframe ("dfrCMs") is assumed to have columns in the order (date, spawning area, nursery area, numRel, numFin, and prFin) although the names associated with these columns are arbitrary.

Value

dataframe with same column names as dfrCMs, but aggregated to new levels


wStockhausen/wtsDisMELSConn documentation built on May 3, 2019, 7:36 p.m.