Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

H5T_STRING-class

Class for HDF5 string datatypes.


Description

Inherits from class H5T.

Value

Object of class H5T_STRING.

Methods

new(type = c("c", "fortran"), size = 1, id = NULL)

Create a string datatype

Parameters

A

C or fortran type string

size

Size of the string object. Set to Inf for variable size strings

id

internal use only

get_size(variable_as_inf = TRUE)

Retrieves the length of the string, setting it to Inf it is of variable length. This function implements the HDF5-API function H5Tis_variable_str. Please see the documentation at https://portal.hdfgroup.org/display/HDF5/H5T_IS_VARIABLE_STR for details.

get_cset()

This function implements the HDF5-API function H5Tget_cset. Please see the documentation at https://portal.hdfgroup.org/display/HDF5/H5T_GET_CSET for details.

set_cset(cset = c("unknown", "UTF-8"))

This function implements the HDF5-API function H5Tset_cset. Please see the documentation at https://portal.hdfgroup.org/display/HDF5/H5T_SET_CSET for details.

set_strpad(strpad)

This function implements the HDF5-API function H5Tset_strpad. Please see the documentation at https://portal.hdfgroup.org/display/HDF5/H5T_SET_STRPAD for details.

get_strpad()

This function implements the HDF5-API function H5Tget_strpad. Please see the documentation at https://portal.hdfgroup.org/display/HDF5/H5T_GET_STRPAD for details.

describe()

Print a detailed description of the datatype; this is experimental

Author(s)

Holger Hoefling

See Also

Examples

# fixed width string
str_flen <- H5T_STRING$new(size=100)
str_flen$is_vlen()
str_flen

# variable length string
str_vlen <- H5T_STRING$new(size=Inf)
str_vlen$is_vlen()
str_vlen

hdf5r

Interface to the 'HDF5' Binary Data Format

v1.3.3
Apache License 2.0 | file LICENSE
Authors
Holger Hoefling [aut, cre], Mario Annau [aut], Novartis Institute for BioMedical Research (NIBR) [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.