unpack_integers: Unpack a vector of "packed integers" (like facility IDs or...

unpack_integersR Documentation

Unpack a vector of "packed integers" (like facility IDs or category IDs)

Description

Unpack a vector of "packed integers" (like facility IDs or category IDs)

Usage

unpack_integers(x, ...)

Examples

packed_integers <- c("c(1, 3)", "c(1:4)")
unpack_integers(packed_integers)

packed_data <- tibble(cat_ids = c("c(1, 3)", "c(1:4)"))
unpack_integers(packed_data, var_name = "cat_ids")
unpack_integers(packed_data)


BAAQMD/packtools documentation built on June 29, 2022, 4:08 p.m.