clean.trimRow: Clean by Indicating Rows to Trim

Description Usage Arguments Details See Also

View source: R/clean.trimRow.R

Description

Cleans by indicating which rows should be dropped

Usage

1
2
clean.trimRow(X, reg = c("ai", "ebs", "gmex", "goa", "neus", "newf", "ngulf",
  "sa", "sgulf", "shelf", "wcann", "wctri"))

Arguments

X

a data.table containing trawl data

reg

a region; should be one of the following: c("ai","ebs","gmex","goa", "neus", "newf", "sa", "sgulf", "shelf", "wcann", "wctri")

Details

Recommended rows to drop according to Malin's original scripts and what's in the OceanAdapt repo. Rows are not actually dropped; rather, a column called keep.row is added to the data.table; when keep.row is FALSE, it is recommended that the row be dropped.

In SA, c("Anchoa hepsetus","Anchoa lyolepis","Anchoa mitchilli","Anchoa cubana") were only ID'd to genus correctly. Rows corresponding to these species are flagged for being dropped, but if desired for an analysis at genus level, can be recovered by examining the spp column for these species and the row_flag column for "Spp1".

See Also

clean.names, clean.format, clean.columns, clean.tax clean.trimRow


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