readSVTS: Read in Sv or TS Data from Echoview

View source: R/readSVTS.R

readSVTSR Documentation

Read in Sv or TS Data from Echoview

Description

Read in Sv (volume backscattering strength) or TS (single target frequencies) data from Echoview csv files and combine into a single data frame.

Usage

readSVTS(svtsdir, oldname = NULL, newname = NULL, elimMiss = NULL,
  datevars = c("Date_S", "Date_E", "Date_M"), addyear = TRUE,
  tidy = TRUE)

Arguments

svtsdir

A character scalar giving the directory in which the csv files are located.

oldname

A character vector giving the original names of variables to be renamed, default NULL.

newname

A character vector giving the new names of variables to be renamed, default NULL.

elimMiss

A character vector giving the names of variables which must have nonmissing values. All rows with a missing value for any of these variables will be eliminated, default NULL.

datevars

A character vector giving the names of variables with date information stored as YYYYMMDD, default c("Date_S", "Date_E", "Date_M"). These will be converted to R dates. If NA, no date coversion will be carried out.

addyear

A logical scalar indicating if a year variable should be added to the data frame, based on the first variable named in datevars, default TRUE.

tidy

A logical scalar indicating if the data frame should be tidied using dfTidy, default TRUE.

Value

A data frame with the all rows of the csv files in svtsdir combined.


krphillips/EchoNet2Fish documentation built on March 19, 2022, 11:59 p.m.