Reads all scalar datasets contained in an HDF5 group and returns them as a tibble. By default, only numeric / integer scalars are returned. If non-numeric scalars (e.g. strings) are present, they can either be dropped with a warning or kept in a list-column.
Arguments
- group
An
hdf5r::H5Groupobject. Direct children of this group are expected to be scalar datasets (i.e.dataset.dims == 0).- numeric_only
Logical (default:
TRUE). IfTRUE, only numeric / integer scalars are returned (others are dropped with a warning). IfFALSE, all scalars are returned in a list-columnvaluetogether with atypecolumn.
Value
If numeric_only = TRUE:
A tibble with columns
- variable
character. Dataset name within the group.- value
numeric. Scalar value read from the dataset.
If numeric_only = FALSE:
A tibble with columns
- variable
character. Dataset name within the group.- value
list. Scalar values (numeric, integer, character, ...).- type
character. First class of each value (e.g."numeric","character").