h5_to_r: Read An H5 File into R

View source: R/read_h5file_in_R.R

h5_to_rR Documentation

Read An H5 File into R

Description

Read An H5 File into R

Usage

h5_to_r(file_path)

.h5_to_r(h5file)

Arguments

file_path

The file path of the candidate .h5 file

h5file

An h5 file

Value

An R object

Examples

# Generate a list
x <- list("length" = 2,
          "integer" = 2L,
          "logical" = TRUE)

# Set a path
file_path <- tempfile(fileext = ".h5")
# Write an h5 file
write_h5files(x, file_path = file_path)
# Read the h5 file into R
r_object <- h5_to_r(file_path)

duohongrui/simutils documentation built on March 12, 2024, 8:40 p.m.