length.onion              package:onion              R Documentation

_L_e_n_g_t_h _o_f _a_n _o_c_t_o_n_i_o_n_i_c _v_e_c_t_o_r

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

     Get or set the length of octonionic vectors.

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

     ## S3 method for class 'onion':
     length(x)
     ## S3 replacement method for class 'onion':
     length(x) <-  value

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

       x: An onionic vector

   value: An integer

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

     Operates on the columns of the matrix as expected.

     In 'length(x) <- value', if 'value>length(x)', the onion is padded
     with 'NA's.

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

     Robin K. S. Hankin

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

     a <- roct(5)
     length(a)
     length(a) <- 3
     a
     length(a) <- 10
     a

