argo_unnest_history_qctest: Unnest Argo QC tests

Description Usage Arguments Value Examples

View source: R/argo-qctest.R

Description

The history_qctest column in argo_prof_history() and argo_traj_history() is a binary flags column, allowing a single integer value to represent up to 32 logical values. This function expands its input such that there is one test represented by each row and can be joined to argo_reference_history_qctest on the history_qctest column.

Usage

1

Arguments

tbl

A data frame with a history_qctest column.

Value

tbl

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(dplyr, warn.conflicts = FALSE)

with_argo_example_cache({
  argo_prof_history(
    "dac/csio/2902746/profiles/BR2902746_001.nc",
    vars = "history_qctest"
  ) %>%
    argo_unnest_history_qctest() %>%
    left_join(argo_reference_history_qctest, by = "history_qctest") %>%
    select(history_qctest_description, everything())
})

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