trawlTrim: Trim Trawl Data

Description Usage Arguments Details Examples

View source: R/trawlTrim.R

Description

Get a trimmed data set for one or more regions

Usage

1
trawlTrim(reg, ...)

Arguments

reg

a list of data.tables or a character vector of regions to be in data set. If a list of data.tables, trimming and combining is performed on those data.tables. If a charcter vector of region names, package data sets by the name of paste0("clean.", reg) are used. If nothing is supplied, reg is a character vector of all region names.

...

arguments to be passed to clean.trimCol

Details

This function drops columns and deletes rows. Column dropping is performed by clean.trimCol, rows to drop determined by flagging performed by clean.trimRow.

If multiple regions are supplied to reg, those regions will be collated via rbindlist. This is possible because trimming columns standardizes content. Additionally, although clean.trimRow adds the keep.row column, this function will actually drop those rows for which keep.row is FALSE.

Examples

1
2
3
4
# default usage
trawlTrim(c("ebs","goa"))
# usage to get an extra column
trawlTrim(c("ebs","shelf"), c.add="WIND")

rBatt/trawlData documentation built on May 26, 2019, 7:45 p.m.