getPSUNASC: Get and aggregate PSUNASC. Rows are reordered.

Description Usage Arguments Value Examples

View source: R/rstox_acoustic.r

Description

getPSUNASC gets a joined table with meanNASC, psu, stratum, and area. I.e., reads transect data, strata and area information from baseline Java object and merges them into one data frame.

aggPSUNASC aggregates psuNASC Layer to PELBOT. Used within functions when resampling and rescaling NASC values if Layer!=PELBOT.

Usage

1
2
3
getPSUNASC(baseline)

aggPSUNASC(psuNASC)

Arguments

baseline

A StoX baseline object.

psuNASC

Data frame from getPSUNASC().

Value

A Java integer, double, or Boolean getPSUNASC returns psuNASC Data frame with mean NASC (Value) per transect (PSU) and Layer together with strata area
aggPSUNASC returns psuNASC_agg Data frame with mean NASC (Value) per transect (PSU)

Examples

1
2
psuNASC <- getPSUNASC("Test_Rstox")
psuNASC_agg <- aggPSUNASC(psuNASC=psuNASC)

Sea2Data/Rstox documentation built on April 18, 2018, 11:11 p.m.