Access and hide IC metadata
unfold.Rd
unfold()
helps unpack metadata associated with ion count
data loaded with read_IC()
. fold()
does the opposite an hides
the metadata as attribute of the tibble.
Arguments
- df
A tibble containing ion count data along any point of the point- workflow
- type
A character string identifying the metadata (default:
"metadata"
)- merge
Logical dictating whether metadata is joined to the tibble or returned as a separate file.
- meta
Additional tibble containing the metadata for storage along the main IC data.
Examples
tb_rw <- read_IC(point_example("2018-01-19-GLENDON"), hide = TRUE)
# Unfold metadata
unfold(tb_rw, merge = FALSE)
#> # A tibble: 81,900 × 8
#> file.nm t.nm species.nm num.mt bfield.mt rad.mt mass.mt tc.mt
#> <chr> <dbl> <chr> <int> <chr> <chr> <chr> <dbl>
#> 1 2018-01-19-GLENDON_1_1 0.54 12C 1 1435.746 310.6… 12.000… 191.
#> 2 2018-01-19-GLENDON_1_1 1.08 12C 1 1435.746 310.6… 12.000… 191.
#> 3 2018-01-19-GLENDON_1_1 1.62 12C 1 1435.746 310.6… 12.000… 191.
#> 4 2018-01-19-GLENDON_1_1 2.16 12C 1 1435.746 310.6… 12.000… 191.
#> 5 2018-01-19-GLENDON_1_1 2.7 12C 1 1435.746 310.6… 12.000… 191.
#> 6 2018-01-19-GLENDON_1_1 3.24 12C 1 1435.746 310.6… 12.000… 191.
#> 7 2018-01-19-GLENDON_1_1 3.78 12C 1 1435.746 310.6… 12.000… 191.
#> 8 2018-01-19-GLENDON_1_1 4.32 12C 1 1435.746 310.6… 12.000… 191.
#> 9 2018-01-19-GLENDON_1_1 4.86 12C 1 1435.746 310.6… 12.000… 191.
#> 10 2018-01-19-GLENDON_1_1 5.4 12C 1 1435.746 310.6… 12.000… 191.
#> # … with 81,890 more rows