Extract.onion             package:onion             R Documentation

_E_x_t_r_a_c_t _o_r _R_e_p_l_a_c_e _P_a_r_t_s _o_f _a_n _o_n_i_o_n

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

     Extract or replace subsets of onions.

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

       x: An onionic vector

   index: elements to extract or replace

   value: replacement value

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

     These methods work as expected: an octonionic vector is a
     eight-row matrix and element selection/replacement operate, on a
     per-column basis, on objects coerced to class "matrix".

_V_a_l_u_e:

     Always returns an onion of the same class as 'x'.

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

     a <- octonion(Re=1,j=1:10)
     a[1:3]  <- Oil
     a[3:5]

     a[2:4] <- a[1]
     a[2:3] <- c(10,11)

