h5createFile: Create HDF5 file

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/h5create.R

Description

R function to create an empty HDF5 file.

Usage

1
h5createFile (file)

Arguments

file

The filename of the HDF5 file.

Details

Creates an empty HDF5 file.

Value

Returns TRUE is file was created successfully and FALSE otherwise.

Author(s)

Bernd Fischer

References

https://portal.hdfgroup.org/display/HDF5

See Also

h5createGroup, h5createDataset, h5read, h5write, rhdf5

Examples

1
2
3
4
5
6
7
h5createFile("ex_createFile.h5")

# create groups
h5createGroup("ex_createFile.h5","foo")
h5createGroup("ex_createFile.h5","foo/foobaa")

h5ls("ex_createFile.h5")

Example output

[1] TRUE
[1] TRUE
[1] TRUE
  group   name     otype dclass dim
0     /    foo H5I_GROUP           
1  /foo foobaa H5I_GROUP           

rhdf5 documentation built on Nov. 8, 2020, 6:56 p.m.