roct                  package:onion                  R Documentation

_R_a_n_d_o_m _o_n_i_o_n_i_c _v_e_c_t_o_r

_D_e_s_c_r_i_p_t_i_o_n:

     Returns a random onionic vector of arbitrary length

_U_s_a_g_e:

     roct(n, x=1:8, replace=TRUE, rand="sample", ...)
     rquat(n, x=1:4, replace=TRUE, rand="sample", ...)

_A_r_g_u_m_e_n_t_s:

       n: Length of onionic vector returned

       x: Argument 'x' as passed to 'sample()'; Only matters if 'rand'
          takes its default value of "'sample'".

 replace: Argument 'replace' as passed to 'sample()'; Only matters if
          'rand' takes its default value of "'sample'".

    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 'runif()'.

     ...: Further arguments passed to the random number generator (such
          as 'mean' and 'sd', which would be passed to 'rnorm()')

_D_e_t_a_i_l_s:

     Function 'rquat()' returns a quaternionic vector and function
     'roct()' returns an octonionic vector.

_N_o_t_e:

     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.

_A_u_t_h_o_r(_s):

     Robin K. S. Hankin

_E_x_a_m_p_l_e_s:

     roct(3)
     plot(roct(30))

