indirectExternalVector-class package:externalVector R Documentation

_C_l_a_s_s "_i_n_d_i_r_e_c_t_E_x_t_e_r_n_a_l_V_e_c_t_o_r", _c_l_a_s_s _f_o_r _i_n_d_i_r_e_c_t _v_e_c_t_o_r _s_u_b_s_e_t _o_f _a_n
_e_x_t_e_r_n_a_l_V_e_c_t_o_r _o_b_j_e_c_t.

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

     Objects from this class store an object of class
     '"externalVector"'  and a vector subscript for that object and
     behaves as if this is an object created by applying that
     subscript.

_O_b_j_e_c_t_s _f_r_o_m _t_h_e _C_l_a_s_s:

     Objects can be created by calls of the form
     'as("indirectExternalVector", vec)' where 'vec' is an object of
     class '"externalVector"'.

_S_l_o_t_s:


     '_a_c_t_u_a_l': Object of class '"externalVector"', the actual object of
          which this is a subset 

     '_i_n_d_e_x': Object of class '"vectorIndex"', the vector subscript to
          get the subset. 

_E_x_t_e_n_d_s:

     Class '"externalVector"', directly.

_M_e_t_h_o_d_s:


     _e_1 _o_p _e_2 For any arithmetic or comparison operation 'op' this
          returns the result of the operation. Either (or both) of 'e1'
          and 'e2' are of class '"indirectExternalVector"'. 

     _C_o_m_p_l_e_x(_z) Return the result of an operation in the 'Complex'
          group generic. 

     _M_a_t_h(_x) Return the result of an operation in the 'Math' group
          generic. 

     _S_u_m_m_a_r_y(_x) Return the result of an operation in the 'Summary'
          group generic. 

     _l_o_g(_x) Return natural logarithm of 'x'. 

     _l_o_g(_x, _b_a_s_e) Return logarithm of 'x' with base 'base'. 

     _x[_i, _j, ..., _d_r_o_p=_F_A_L_S_E] Extract a subset of 'x' according to the
          given subscripts. 

     _x[_i, _j, ...] <- _v_a_l_u_e Subassign of 'x' by 'value' according to the
          given subscripts. This assigns to the correct elements of
          'x@actual'. 

     _a_s._R_v_e_c_t_o_r(_x) Coerce 'x' to a basic R vector with same names,
          dimension and dimnames (if any of these are present in 'x'). 

     _a_s._v_e_c_t_o_r(_x, _m_o_d_e) Return an R basic vector with mode 'mode'. 

     _a_s._m_a_t_r_i_x Return a matrix of appropriate mode .

     _l_e_n_g_t_h(_x) Return the length of 'x'. 

     _l_e_n_g_t_h(_x) <- _v_a_l_u_e Set the length of 'x' to 'value'. 

     _d_i_m(_x) Return the dimension of 'x'. 

     _d_i_m(_x) <- _v_a_l_u_e Set the dimension of 'x' to 'value'. 

     _d_i_m_n_a_m_e_s(_x) Return the dimnames of 'x'. 

     _d_i_m_n_a_m_e_s(_x) <- _v_a_l_u_e Set the dimnames of 'x' to 'value'. 

     _g_e_t_E_x_t_e_r_n_a_l_S_t_o_r_a_g_e(_x) Return the 'storage' slot of associated with
          'x@actual'. 

     _i_s._f_i_n_i_t_e(_x) Return a vector of logicals with same length as 'x'
          indicating if an element of 'x' is finite. 

     _i_s._i_n_f_i_n_i_t_e(_x) Return a vector of logicals with same length as 'x'
          indicating if an element of 'x' is infinite. 

     _i_s._n_a(_x) Return a vector of logicals with same length as 'x'
          indicating if an element of 'x' is 'NA'. 

     _i_s._n_a_n(_x) Return a vector of logicals with same length as 'x'
          indicating if an element of 'x' is 'NaN'. 

     _s_e_t_N_a_m_e_s(_x, _v_a_l_u_e) Set the names of 'x' to 'value' without any
          error checking or coercion. Return the modified 'x'. 

     _f_o_r_c_e return the result of 'force(x@actual)[x@index]'. 

_S_e_e _A_l_s_o:

     'indirectExternalMatrix-class' for the matrix class corresponding
     to this.

