Extract.onion: Extract or Replace Parts of an onion
Description
Extract or replace subsets of onions.
Arguments
x
An onionic vector
index
elements to extract or replace
value
replacement value
Value
Always returns an onion of the same class as x.
Details
These methods work as expected: an octonionic vector is a eight-row
matrix and element selection/replacement operate, on a per-column basis,
on objects coerced to class “matrix”.