Extract function

Extract or Replace Parts of onions or glubs

Extract or Replace Parts of onions or glubs

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

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

Arguments

  • x,z: Object of class onion
  • value: replacement value

Returns

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

Author(s)

Robin K. S. Hankin

Note

If x is a numeric vector and y a onion, one might expect typing x[1] <- y to result in x being a onion. This is impossible, according to John Chambers.

Examples

a <- roct(9) il(a) Re(a) <- 1:9 j(a) <- l(a) a
  • Maintainer: Robin K. S. Hankin
  • License: GPL-2
  • Last published: 2024-03-29