read_tome_vector: Read a vector from a tome (or other HDF5 object)

Description Usage Arguments Value

View source: R/read_tome_lowlevel.R

Description

The h5read function sticks close to the actual object stored in an HDF5 file - that is, it will return a 1d array instead of a true vector object. This function is a simple wrapper around h5read that will apply unlist and as.vector to the output of h5read so that the result is a standard R vector.

Usage

1

Arguments

tome

A tome file (other HDF5 files will work as well).

name

The name of the object in the HDF5 hierarchy.

Value

A vector of the same type as the object in the HDF5 file.


AllenInstitute/scrattch.io documentation built on Nov. 17, 2021, 10:06 a.m.