Extract {onion} | R Documentation |
Extract or Replace Parts of onions or glubs
Description
Methods for "["
and "[<-"
, i.e., extraction or
subsetting of onions.
Usage
## 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 |
Value
Extraction and methods return an onion or onionmat.
Replacement methods return an object of the same class as x
.
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.
Author(s)
Robin K. S. Hankin
Examples
a <- roct(9)
il(a)
Re(a) <- 1:9
j(a) <- l(a)
a
[Package onion version 1.5-3 Index]