HDF5WriteData: Write HDF5 dataset

Description Usage Arguments Note Author(s) See Also Examples

Description

Write a dataset to HDF5 file.

Usage

1
HDF5WriteData(filename,path,data,options)

Arguments

filename

HDF5 file name in full path

path

the full path of the dataset within the HDF5 file

data

data to be written

startindex the starting row index (zero based) of the dataset to be overwritten
nrows the number of rows of data to be overwritten
forceNewFile logical value to indicate if an existing file will
be erased first before writing
overwrite logical value to indicate if an existing dataset will get
overwritten
compresslevel integer value (0-9) to indicate data compression level.
Higher compression results in longer time. Default(0)

Note

None at this time

Author(s)

Wilson Lau

See Also

HDF5Summary HDF5ReadData HDF5ReadAttribute HDF5WriteAttribute

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
 
 # write the dataset named "dsInt" in a hdf5 file
 data <- array(1:10,dim=10) 
 HDF5WriteData("./Kidneycortex_Female_W10.h5","/dsInt",data)

 # write the dataset named "dsInt" within a group "dsGrp" 
 HDF5WriteData("./Kidneycortex_Female_W10.h5","/dsGrp/dsInt",data)

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

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