HDF5ReadData: Reading HDF5 dataset

Description Usage Arguments Note Author(s) See Also Examples

Description

Read a dataset from HDF5 file.

Usage

1
HDF5ReadData(filename,path,options)

Arguments

filename

HDF5 file name in full path

path

the full path of the dataset within the HDF5 file

startindex the starting row index (zero based) of the dataset to be read. Default(0)
nrows the number of rows of data to be read. Default(all rows)

Note

None at this time

Author(s)

Wilson Lau

See Also

HDF5Summary HDF5WriteData HDF5ReadAttribute HDF5WriteAttribute

Examples

1
2
3
4
5
6
7
8
9
 
 # read the dataset named "dsInt" in a hdf5 file
 data<-HDF5ReadData("./Kidneycortex_Female_W10.h5","/dsInt")

 # read the dataset named "dsInt" within a group "dsGrp" 
 data<-HDF5ReadData("./Kidneycortex_Female_W10.h5","/dsGrp/dsInt")

 # read only the 2nd and 3rd row of the dataset named "dsInt" within a group "dsGrp" 
 data<-HDF5ReadData("./Kidneycortex_Female_W10.h5","/dsGrp/dsInt", options=list(startindex=2, nrows=2))

Sage-Bionetworks/rHDF5 documentation built on May 9, 2019, 12:13 p.m.