SOMEC2ECSAS: Export QC data to the ECSAS database.

View source: R/SOMEC2ECSAS.R

SOMEC2ECSASR Documentation

Export QC data to the ECSAS database.

Description

Creates a .csv file used for exporting the data from the QC SOMEC database to the ECSAS database.

Usage

SOMEC2ECSAS(input = "SOMEC.accdb", output = "ECSASexport.csv",
            date = "2014-01-01", step = "5 min", spNA = TRUE, excludeCruises = NULL,
            typeSaisie = "ordi", inTransect = TRUE, saveErrors = TRUE)

Arguments

input

Name and path to the Access Quebec SOMEC database.

output

Name and path of the export .csv file created.

date

Cut off date after which the data should be extracted (character, format: "yyyy-mm-dd").

step

Length of bouts in minutes to cut or join the transects into (default: "5 min"). Original QC data is cut in 1 minute bouts. See the by argument of seq.POSIXt for details on how to specify a value.

spNA

Species codes without matches will be turned to NAs or left with their codes.

excludeCruises

Character vector with cruises ids to exclude.

typeSaisie

Character vector to subset the way data was collected. Defaults to "ordi" - only data collected on computer will be returned.

inTransect

Should only data in transect be returned?

saveErrors

Log problems with transects encountered during extraction.

Details

If output, date, excludeCruises or typeSaisie are NULL, the corresponding options will be ignored.

Value

A .csv file written at the given location.

Author(s)

Francois Rousseu

See Also

data2SOMEC


RoyChristian/ECSASconnect documentation built on May 8, 2024, 11:30 a.m.