Returns the low-level HDF5 storage type of a dataset (e.g., "int8", "float64", "string"). This allows inspecting the file storage type before reading the data into R.
Examples
file <- tempfile(fileext = ".h5")
# Write integers
h5_write(file, "integers", 1:5)
# Write doubles
h5_write(file, "doubles", c(1.1, 2.2))
# Check types
h5_typeof(file, "integers") # "uint8" (auto-selected)
#> [1] "uint8"
h5_typeof(file, "doubles") # "float64" (auto-selected)
#> [1] "float64"
unlink(file)
