R using list.datasets for specific groups in h5 files

81 Views Asked by At

I have 4 groups within my h5 file such that the following code:

list.datasets(spot_sims)
= [1] "/Apple/2018" "/Apple/2019" "/IBM/2018" "/IBM/2019"

How can I query only the IBM group without having to use index numbers?

E.g. I have tried variations of the following:

list.datasets(spot_sims)["\\IBM"]
0

There are 0 best solutions below