qcDive: 'qcDive' Checks consistency of dive records

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/qcDive.R

Description

qcDive Checks consistency of dive records

Usage

1
qcDive(d.dat = dive, flag.only = T, max.v.speed = 5)

Arguments

d.dat

Dive data to be quality controlled

flag.only

logical specifying if erroneous records should be flagged or deleted

max.v.speed

Threshold for maximum allowable rate of change in depth between inflection points (in m/s)

Details

the function checks for consistency in time sequences between inflections points and unrealistic depth changes between inflection points.

Value

Returns a data frame with either an added column with qc flag (0 for OK, 1 for error), or with erroneous records deleted or an interactive dygraph (if type is set to 'dygraph')

Author(s)

Martin Biuw

See Also

fields.SRDLdb for table field names, ref.SRDLdb for ref ID codes, dep.SRDLdb for retrieving deployments metadata, get.SRDLdb for querying and retrieving data from database table strip.SRDLmakes a stripchart of SRDL dive data

Other SMRU SRDL functions: map.SRDL(), strip.SRDL()

Examples

1
2
dive.deleted <- qcDive(dive)
dive.flagged <- qcDive(flagged.only=T)

embiuw/rSRDL documentation built on Jan. 27, 2021, 8:11 p.m.