create_empty | R Documentation |
Create an empty R-object according to a given HDF5 datatype
create_empty(nelem, dtype)
nelem |
The number of elements to use for the object |
dtype |
The datatype based on which an empty R-object should be created |
With complex datatypes it can be useful to have a template that can be used so that the data input into a dataset conforms to expectations.
Given a datatype, this function creates an object of length nelem
.
Here, an empty datatype refers to objects with value 0 for numeric objects and
empty strings.
An empty R object corresponding to the datatype that was passed in
Holger Hoefling
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.