onion (version 1.5-0)

Extract: Extract or Replace Parts of onions or glubs

Description

Methods for "[" and "[<-", i.e., extraction or subsetting of onions.

Usage

# S4 method for onion
i(z)
# S4 method for onion
j(z)
# S4 method for onion
k(z)
# S4 method for octonion
l(z)
# S4 method for octonion
il(z)
# S4 method for octonion
jl(z)
# S4 method for octonion
kl(z)
# S4 method for onionmat
i(z)
# S4 method for onionmat
j(z)
# S4 method for onionmat
k(z)
# S4 method for onionmat
il(z)
# S4 method for onionmat
jl(z)
# S4 method for onionmat
kl(z)
i(x) <- value
j(x) <- value
k(x) <- value
l(x) <- value
il(x) <- value
jl(x) <- value
kl(x) <- value

Value

Extraction and methods return an onion or onionmat. Replacement methods return an object of the same class as x.

Arguments

x,z

Object of class onion

value

replacement value

Author

Robin K. S. Hankin

Examples

Run this code

a <- roct(9)
il(a)
Re(a) <- 1:9

j(a) <- l(a)
a

Run the code above in your browser using DataLab