Description Usage Arguments Value Author(s) References See Also Examples
Set a new dataset extension to an existing dataset in an HDF5 file
1 | h5set_extent(file, dataset, dims, native = FALSE)
|
file |
The filename (character) of the file in which the dataset will be located. For advanced programmers it is possible to provide an object of class |
dataset |
The name of the dataset in the HDF5 file, or an object of class |
dims |
The dimensions of the array as they will appear in the file. Note, the dimensions will appear in inverted order when viewing the file with a C-programm (e.g. HDFView), because the fastest changing dimension in R is the first one, whereas the fastest changing dimension in C is the last one. |
native |
An object of class |
.
Returns 0 if the dimension of the dataset was changed successfully and a negative value otherwise.
Bernd Fischer
https://portal.hdfgroup.org/display/HDF5
rhdf5
1 2 3 4 5 6 | tmpfile <- tempfile()
h5createFile(file=tmpfile)
h5createDataset(tmpfile, "A", c(10,12), c(20,24))
h5ls(tmpfile, all=TRUE)[c("dim", "maxdim")]
h5set_extent(tmpfile, "A", c(20,24))
h5ls(tmpfile, all=TRUE)[c("dim", "maxdim")]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.