This function is superceded. It is recommended that you use the functionality
from the distributional
package to extract elements from a
<hilo> object. For example, you can access
the lower bound with
Allows a hilo column to be unpacked into its component columns: "lower", "upper", and "level".
unpack_hilo(data, cols, names_sep = "_", names_repair = "check_unique")
A data frame.
Name of hilo columns to unpack.
If a string, the inner and outer names will be used together. In
unpack(), the names of the new outer columns will be formed by pasting
together the outer and the inner column names, separated by
pack(), the new inner names will have the outer names +
automatically stripped. This makes
names_sep roughly symmetric between
packing and unpacking.
Used to check that output data frame has valid names. Must be one of the following options:
"minimal": no name repair or checks, beyond basic existence,
"unique": make sure names are unique and not empty,
"check_unique": (the default), no name repair, but check they are unique,
"universal": make the names unique and syntactic
a function: apply custom name repair.
tidyr_legacy: use the name repair from tidyr 0.8.
a formula: a purrr-style anonymous function (see
vctrs::vec_as_names() for more details on these terms and the
strategies used to enforce them.