Description Usage Arguments Value Examples
Whereas the variable-wide format returned by most Argo read and load functions are useful, some processing and plotting algorithms need data in a variable-long form, where the variable name is assigned to a column whose value is used to identify the measurement represented by each row.
1 | argo_pivot_longer(tbl, id_cols)
|
tbl |
An Argo table with paired value/qc/adjusted columns, likely
from |
id_cols |
A vector of column names used to identify each row in the
output using |
A tibble::tibble()
with columns id_cols
, variable
, value
,
value_qc
, value_adjusted
, value_adjusted_qc
, and
value_adjusted_error
.
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_pivot_longer(id_cols = c(file, n_prof, pres))
})
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.