Extract                 package:gmp                 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_b_j_e_c_t

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

     Operators acting on vectors, arrays and lists to extract or
     replace subsets.

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

     c.bigz(...,recursive = FALSE)
     rep.bigz(x,times,...)

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

       x: Object or vector of class bigz

     ...: Additional parameters

   times: Integer

recursive: Unused

_N_o_t_e:

     Unlike standard matrix, operator x[i] & x[i,] do the same.

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

       a <- as.bigz(123)
       a[2 ] <- a[ 1]

       ## create a vector of 3 a
       c(a,a,a)

       ## repeate a 5 times
       rep(a,5)

       ##_with matrix
       m =  matrix.bigz(1:6,3)

       ## this do the same:
       m[1,]
       m[1]
       m[-c(2,3),]
       m[-c(2,3)]
       m[c(TRUE,FALSE,FALSE)]

       ##_modification on matrix
       m[2,-1] <- 11
       

