onion (version 1.2-7)

length.onion: Length of an octonionic vector

Description

Get or set the length of octonionic vectors.

Usage

# S3 method for onion
length(x)
# S3 method for onion
length(x) <-  value

Arguments

x

An onionic vector

value

An integer

Details

Operates on the columns of the matrix as expected.

In length(x) <- value, if value>length(x), the onion is padded with NAs.

Examples

Run this code
# NOT RUN {
a <- roct(5)
length(a)
length(a) <- 3
a
length(a) <- 10
a

# }

Run the code above in your browser using DataCamp Workspace