roct {onion} | R Documentation |
Returns a random onionic vector of arbitrary length
roct(n, x=1:8, replace=TRUE, rand="sample", ...) rquat(n, x=1:4, replace=TRUE, rand="sample", ...)
n |
Length of onionic vector returned |
x |
Argument |
replace |
Argument |
rand |
String, with name being that of the distribution
intended. Currently implemented values are “sample”
(default), “norm”, “unif”, “binom” and
“pois”. Add an “r” to get the name of the function
used; thus “unif” means to call |
... |
Further arguments passed to the random number generator
(such as |
Function rquat()
returns a quaternionic vector and function
roct()
returns an octonionic vector.
Arguments x
and replace
are there (and have the
default values they do) in order to make roct(n)
return a
“get you going” random onion that prints relatively compactly.
Robin K. S. Hankin
roct(3) plot(roct(30))