externalVectorWithStorage-classpackage:externalVectorR Documentation

_C_l_a_s_s "_e_x_t_e_r_n_a_l_V_e_c_t_o_r_W_i_t_h_S_t_o_r_a_g_e", _e_x_t_e_r_n_a_l _v_e_c_t_o_r _c_l_a_s_s _w_i_t_h
_a_n _e_x_t_e_r_n_a_l _s_t_o_r_a_g_e _f_o_r _t_h_e _v_e_c_t_o_r

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

     This is a subclass of '"externalVector"' that implements the use
     of arbitrary external backends for storing the elements of the
     vector.

_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 'externalVector(type,
     lengtyh, storageClass)'.

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


     '_s_t_o_r_a_g_e': Object of class '"externalStorage"', the storage
          backend for the vector elements. 

     '_N_a_m_e_s': Object of class '"vectorNamesType"', names of the
          elements. 

     '_D_i_m': Object of class '"integerOrNull"', dimension of the object. 

     '_D_i_m_N_a_m_e_s': Object of class '"listOrNull"', dimnames of the object 

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

     Class '"externalVector"', directly. Class '"vectorNamesType"',
     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 '"externalVectorWithSTorage"'. 

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

     _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_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_o_l_S_u_m_s(_x, _n_a._r_m, _d_i_m_s) Return the column sums of 'x'. 

     _c_o_l_M_e_a_n_s(_x, _n_a._r_m, _d_i_m_s) Return the column means of 'x'. 

     _r_o_w_S_u_m_s(_x, _n_a._r_m, _d_i_m_s) Return the row sums of 'x'. 

     _r_o_w_M_e_a_n_s(_x, _n_a._r_m, _d_i_m_s) Return the row means of 'x'. 

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

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

     _g_e_t_N_a_t_i_v_e_S_t_o_r_a_g_e_M_e_t_h_o_d_s Return
          'getNativeStorageMethods(x@storage)'. 

     _i_s._f_i_n_i_t_e(_x) Return an external 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 an external vector of logicals with same
          length as 'x' indicating if an element of 'x' is infinite. 

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

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

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

     _n_a_m_e_s(_x) Return the names of 'x'. 

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

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

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

     _r_e_b_i_n_d(_x, _l_e_n_g_t_h._x = _l_e_n_g_t_h(_x), _t_y_p_e = _d_e_f_a_u_l_t_E_l_e_m_e_n_t(_x), _n_a_m_e_s._x = _n_a_m_e_s(_x), _d_i_m._x = _d_i_m(_x), _d_i_m_n_a_m_e_s._x = _d_i_m_n_a_m_e_s(_x), ..., _a_r_r_a_y_O_n_l_y = _F_A_L_S_E) 
          Create an '"externalVectorWithStorage"' object with the same
          external storage backend class as 'x' but with (possibly) new
          length, type, names, dim or dimnames. If arrayOnly is FALSE,
          the names, dim and dimnames for the new object are not set. 

     _i_n_i_t_i_a_l_i_z_e(._O_b_j_e_c_t, ...) Initialize a new object from class
          '"externalVectorWithSTorage"'. 

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

     'externalVector' and 'externalMatrix' for how how to create new
     objects from this class easily.

