H5T_enum | R Documentation |
Create or modify an HDF5 enum datatype
H5Tenum_create(dtype_id = "H5T_NATIVE_INT")
H5Tenum_insert(dtype_id, name, value)
dtype_id |
ID of HDF5 datatype to work with. For |
name |
The name of a the new enum member. This is analogous to a "level" in an R factor. |
value |
The value of the new member. Must be compatible with the base
datatype defined by |
H5Tinsert_enum()
returns an character representing the H5 identifier
of the new datatype.
H5Tset_precision()
is called for its side-effect of modifying the
existing datatype. It will invisibly
return TRUE
if this is successful FALSE
if not.
tid <- H5Tenum_create(dtype_id = "H5T_NATIVE_UCHAR")
H5Tenum_insert(tid, name = "TRUE", value = 1L)
H5Tenum_insert(tid, name = "FALSE", value = 0L)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.