Represents a multi-dimensional array that can be accessed and subsetted via list of Slice instances.
Value
The data as a flat vector.
The data as a flat raw vector. Convert NestArray object to R array (for S3 method)
Public fields
shape
The shape of the array.
dtype
The Zarr dtype of the array, as a string like ">f8".
dtype_obj
The Zarr dtype of the array, as a Dtype instance.
data
The array contents as a base R array.
Methods
Method new()
Create a new NestedArray instance.
Usage
NestedArray$new(data, shape = NA, dtype = NA, order = NA)
Arguments
data
The data to initialize the array with. Either NULL, base R array, base R vector (numeric/logical), scalar, or raw vector.
shape
The shape of the array.
dtype
The Zarr dtype of the array, as a string like ">f8".
order
The order of the array, either "C" or "F". Only used when
data
is a raw vector. Optional.
Method get()
Subset the array.