externalVector-class     package:externalVector     R Documentation

_C_l_a_s_s "_e_x_t_e_r_n_a_l_V_e_c_t_o_r", _b_a_s_e _c_l_a_s_s _f_o_r _v_e_c_t_o_r _o_b_j_e_c_t_s _s_t_o_r_e_d _i_n
_a_n _e_x_t_e_r_n_a_l _r_e_s_o_u_r_c_e

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

     This class represents objects that behave like R basic vectors but
     are stored in some external resource.

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

     A virtual Class: No objects may be created from it.

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

     Common signature components for the methods:

       x  The class "externalVector"
       X  The class "externalVector"

     Description of the methods:


     _a_s_E_a_c_h(_x, _t_y_p_e, _a_r_r_a_y_O_n_l_y) Coerce 'x' so that it now behaves like
          a basic R vector with the same class as 'type'.

     _c(_x, ..., _r_e_c_u_r_s_i_v_e) Combine all the arguments into a single
          vector. Behaves like a basic R vector with the same class as
          'type'.

     _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 external vector which behaves like a
          basic R vector of mode 'mode'. 

     _a_s._l_o_g_i_c_a_l(_x, ...) Return an external vector with all elements
          coerced to logical. 

     _a_s._i_n_t_e_g_e_r(_x, ...) Return an external vector with all elements
          coerced to integer. 

     _a_s._d_o_u_b_l_e(_x, ...) Return an external vector with all elements
          coerced to numeric. 

     _a_s._n_u_m_e_r_i_c(_x, ...) Return an external vector with all elements
          coerced to numeric. 

     _a_s._c_h_a_r_c_a_t_e_r(_x) Return an external vector with all elements
          coerced to character. 

     _a_s._l_i_s_t(_x, ...) Return an external vector that behaves like a
          list. 

     _a_s._s_i_n_g_l_e(_x, ...) Return an external vector with all elements
          coerced to numeric and a "CSingle" attribute set to 'TRUE'. 

     _a_s._d_a_t_a._f_r_a_m_e(_x, _r_o_w._n_a_m_e_s, _o_p_t_i_o_n_a_l) Create a data.frame object
          from 'x'. 

     _a_s._m_a_t_r_i_x(_x) If 'length(dim(x))' is '2', return 'x' unchanged.
          Otherwise, return 'x' as a matrix with a single column. 

     _d_e_f_a_u_l_t_E_l_e_m_e_n_t(_x) The default element of 'x' contained in a basic
          R vector. 

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

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

     _s_h_o_w(_o_b_j_e_c_t) Display 'object'. 

     _a_p_p_l_y(_X, _M_A_R_G_I_N, _F_U_N, ...) Coerce X to an R matrix and call the
          default 'apply' method. 

     _l_a_p_p_l_y(_X, _F_U_N, ...) Lapply for "externalVector" class. 

     _s_a_p_p_l_y(_X, _F_U_N, ..., _s_i_m_p_l_i_f_y, _U_S_E._N_A_M_E_S) Sapply for
          "externalVector" class. 

     _m_e_a_n(_x, _t_r_i_m = _0, _n_a._r_m = _F_A_L_S_E, ...) Mean and trimmed mean of
          'x'. 

     _m_e_d_i_a_n(_x, _n_a._r_m = _F_A_L_S_E) Mean of 'x'. 

_V_i_r_t_u_a_l _M_e_t_h_o_d_s:

     Common signature components for implementation of the virtual
     methods:

       x      A subclass of "externalVector"
       value  The class "ANY"

     Description of the virtual methods:


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

     _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'. 

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

     'externalVectorWithStorage-class','matrixIndex-class',
     'indirectExternalVector-class', 'indirectExternalMatrix-class',
     for subclasses of '"externalVector"'.

