formatStation: Format Station Data

Description Usage Arguments Author(s)

View source: R/formatStation.R

Description

Format data for a station from an list of tables read from a PAMGuard SQLlite database.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
formatStation(
  db,
  buoyPositions = NULL,
  overrideError = FALSE,
  dateFormat = "%Y-%m-%d %H:%M:%S",
  extraCols = NULL,
  ...
)

formatBuoyPosition(db)

formatBuoyCalibration(db, position)

formatBuoyEffort(db)

formatDetections(db, buoys, extraCols = NULL)

convertBinaryChannel(x)

Arguments

db

list of data frames from PAMGuard SQLlite database

buoyPositions

optional argument, can be a data frame containing position information for buoy deployments or a file path. Data frame must have columns Buoy, UTC, Latitude, and Longitude. If buoy positions are present both in the database and this dataframe, positions from this data frame will be used. File path must be to a csv file to be read in as a data frame.

overrideError

station formatting will stop if insufficient buoy position data is present. Set this to TRUE to override this behaviour and continue loading the station and mark problematic buoys with error=TRUE.

dateFormat

character string giving date-time format as used by strptime. This is used to format the dates of data supplied by buoyPositions.

extraCols

character vector listing any extra columns to keep while loading detection data.

Author(s)

Eric Archer eric.archer@noaa.gov, Taiki Sakai taiki.sakai@noaa.gov


EricArcher/PAMsbuoy documentation built on March 3, 2021, 5:56 a.m.