Learn R Programming

hdf5r (version 1.3.11)

convertRoundTrip: Round-trip of converting data to HDF5 and back to R

Description

Round-trip of converting data to HDF5 and back to R

Usage

convertRoundTrip(Robj, dtype, nelem = length(Robj),
  flags = h5const$H5TOR_CONV_INT64_NOLOSS)

Value

A list with input, number of elements, raw vector for intermediate storage and output

Arguments

Robj

The object to convert

dtype

The datatype to convert it into

nelem

The number of elements in the object

flags

conversion flags from HDF5 to R

Author

Holger Hoefling

Details

Take an R-object, convert it to HDF5, convert it back and return input, output and intermediate steps This is mainly intended for use in tests.