DefinePSU: Define PSU

View source: R/Define.R

DefinePSUR Documentation

Define PSU

Description

Underlying function for DefineBioticPSU and DefineAcousticPSU.

Usage

DefinePSU(
  processData,
  UseProcessData = FALSE,
  StratumPolygon,
  StoxData = NULL,
  MergedStoxDataStationLevel = NULL,
  DefinitionMethod = c("Manual", "Identity", "DeleteAllPSUs", "PreDefined",
    "ResourceFile"),
  FileName = character(),
  PSUType = c("Acoustic", "Biotic"),
  SavePSUByTime = FALSE,
  PSUProcessData
)

Arguments

processData

The current data produced by a previous instance of the function.

UseProcessData

Logical: If TRUE use the existing function output in the process.

StratumPolygon

The StratumPolygon process data.

StoxData

Either StoxBioticData or StoxAcousticData data.

MergedStoxDataStationLevel

The merged StoxData at the station level. Used in meanRawResolutionData.

DefinitionMethod

A string naming the method to use, see DefineBioticPSU and DefineAcousticPSU.

FileName

The path to a resource file from which to read PSUs, in the case that DefinitionMethod is "ResourceFile". Currently, only a project.xml file from StoX 2.7 can be read. Must include file extension.

PSUType

Character: A string naming the type of model, either "Acoustic" or "Biotic"

SavePSUByTime

Logical: If TRUE save the start and end times of sequences of EDSUs or Stations for each PSU.

PSUProcessData

Previously generated PSU process data, one of AcousticPSU or BioticPSU.

Value

An list of two objects, Stratum_PSU and SSU_PSU.

See Also

DefineAcousticPSU and DefineBioticPSU..


StoXProject/RstoxBase documentation built on Nov. 6, 2024, noon