Extract: Extract or Replace Parts of onions or glubs

Description Usage Arguments Value Note Author(s) Examples

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
## 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

1
2
3
4
5
6
a <- roct(9)
il(a)
Re(a) <- 1:9

j(a) <- l(a)
a

onion documentation built on Feb. 11, 2021, 9:06 a.m.