Description Usage Arguments Value Examples
View source: R/argo-adjusted.R
Many Argo tables have _adjusted
columns that contain a more reliable value.
However, in many cases, these values are blank or not present. Use
argo_use_adjusted()
to replace NA
values in cols
with the value in
the paired _adjusted
column. You can use this with
argo_qc_censor_if_not()
to set values in cols
to NA
based on the paired
_qc
column prior to preferring the adjusted value.
1 2 3 4 5 6 7 | argo_use_adjusted(
tbl,
cols,
adjusted_cols = argo_adjusted_cols(tbl, { { cols } })
)
argo_adjusted_cols(tbl, cols)
|
tbl |
tbl A data frame containing |
cols |
Columns in |
adjusted_cols |
A paired vector of columns to |
A tibble::tibble()
with
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_use_adjusted(doxy)
})
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.