h5_names_exist: check if group names exist in HDF5 file

View source: R/h5utils.R

h5_names_existR Documentation

check if group names exist in HDF5 file

Description

The group names in an HDF5 file are stored as full paths as well as a flat vector. It is thus possible to check if a particular set of group names exist in the file by parsing the name member of the output of rhdf5::h5ls. This function does just that.

Usage

h5_names_exist(h5f, nms_to_find)

Arguments

h5f

HDF5 file handle openend with rhdf5::H5Fopen

nms_to_find

Vector of strings, group names (not full paths) which are to be located in the file.

Value

Vector of booleans of the same length as nms_to_find indicating whether the name at the same index position was located in the file.


hadron documentation built on Sept. 9, 2022, 5:06 p.m.