chihaya-utils | R Documentation |
Convenience utilities for extending the chihaya format with “custom” seeds or operations. These should only be used by package developers.
.saveList(file, name, x, parent = NULL, vectors.only = FALSE)
.loadList(file, name, parent = NULL, vectors.only = FALSE)
.labelOperationGroup(file, name, op)
.labelArrayGroup(file, name, arr)
.saveDataset(
file,
name,
x,
parent = NULL,
scalar = FALSE,
optimize.type = FALSE,
h5type = NULL,
chunks = NULL
)
.pickArrayType(x)
file |
String containing a path to a file. |
name |
String containing the name of the object inside the file.
This should be a full path from the root of the file, unless |
x |
The object to save.
|
parent |
String containing the name of the parent containing the child |
vectors.only |
Logical scalar indicating whether elements of |
op |
String containing the name of the delayed operation to use to label the group. |
arr |
String containing the name of the delayed array to use to label the group. |
scalar |
Logical scalar indicating whether length-1 |
optimize.type |
Logical scalar indicating whether to optimize the HDF5 storage type for non-scalar, non-string |
h5type |
String specifying the HDF5 storage type to use for non-scalar, non-string |
chunks |
Integer vector of length equal to the number of dimensions of non-scalar |
.saveList
and .saveScalar
will write x
to file, returning NULL
invisibly.
.labelArrayGroup
and .labelOperationGroup
will apply the label to the specified group, returning NULL
invisibly.
.loadList
will return a list containing the contents of name
.
This is guaranteed to contain only vectors (or fail) if vectors.only=TRUE
.
.pickArrayType
will return a string containing the chihaya type for an array-like x
.
Aaron Lun
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.