argo_qc_censor_if_not: Apply QC flags to Argo data

Description Usage Arguments Value Examples

View source: R/argo-qc.R

Description

Apply QC flags to Argo data

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
argo_qc_censor_if_not(
  tbl,
  cols,
  qc_flag,
  qc_cols = argo_qc_cols(tbl, {     {         cols     } })
)

argo_qc_censor_if(
  tbl,
  cols,
  qc_flag,
  qc_cols = argo_qc_cols(tbl, {     {         cols     } })
)

argo_qc_keep_if_all(
  tbl,
  cols,
  qc_flag,
  qc_cols = argo_qc_cols(tbl, {     {         cols     } })
)

argo_qc_keep_if_any(
  tbl,
  cols,
  qc_flag,
  qc_cols = argo_qc_cols(tbl, {     {         cols     } })
)

argo_qc_discard_if_all(
  tbl,
  cols,
  qc_flag,
  qc_cols = argo_qc_cols(tbl, {     {         cols     } })
)

argo_qc_discard_if_any(
  tbl,
  cols,
  qc_flag,
  qc_cols = argo_qc_cols(tbl, {     {         cols     } })
)

argo_qc_cols(tbl, cols)

Arguments

tbl

A data frame containing _qc or _QC columns.

cols

Columns in tbl, specified using dplyr::select() syntax.

qc_flag

One or more quality control flags. See argo_reference_qc_flag for long-form descriptions of integer qc_flag values.

qc_cols

A vector of columns that contain the quality control flag values found in columns.

Value

A modified tbl.

Examples

1
2
3
4
5
6
library(dplyr, warn.conflicts = FALSE)

with_argo_example_cache({
  argo_prof_levels("dac/csio/2902746/profiles/BR2902746_001.nc") %>%
    argo_qc_censor_if_not(doxy, qc_flag = c(1, 2, 8))
})

ArgoCanada/argodata documentation built on Dec. 13, 2021, 10:13 a.m.