sliceIndex-class       package:externalVector       R Documentation

_C_l_a_s_s "_s_l_i_c_e_I_n_d_e_x", _i_n_d_e_x _c_l_a_s_s _r_e_p_r_e_s_e_n_t_i_n_g _a _s_e_q_u_e_n_c_e _o_f
_n_o_n-_n_e_g_a_t_i_v_e _i_n_t_e_g_e_r_s

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

     This represents a sequence that can be created with 'seq(start,
     by=stride, length=n)' where 'star >= 0' and 'start+(n-1)*stride >=
     0'.

_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 'makeSlice(start,
     length, stride)'.

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


     '_c_o_n_t_e_n_t': Object of class '"numeric"' of length '3'. The first
          element of 'content' is the start of the index, the second
          element is the length of the index, and the third element is
          the difference between successive elements of the index. 

     '_N_a_m_e_s': Object of class '"vectorNamesType"', this contains names
          associated with the elements of the index (if any). 

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

     Class '"vectorIndex"', directly.

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

     Signature components for the methods are:

       x        The class "allIndex"
       scalar   Length one positive "integer"
       i        The class "ANY"
       value    The class "ANY"
       .Object  The class "allIndex"


     '_x+_s_c_a_l_a_r': Add 'scalar' to 'x'. Result is 'x' with 'x@content[1]'
          replaced by 'x@content[1]+scalar'. 

     '_s_c_a_l_a_r+_x': Add 'scalar' to 'x'. Result is 'x' with 'x@content[1]'
          replaced by 'x@content[1]+scalar'. 

     '_x*_s_c_a_l_a_r': Multiply 'x' by 'scalar'. Result is 'x' with
          'x@content[3]' replaced by 'x@content[3]*scalar'. 

     '_s_c_a_l_a_r*_x': Multiply 'x' by 'scalar'. Result is 'x' with
          'x@content[3]' replaced by 'x@content[3]*scalar'. 

     '_x[_i]': Subset x. If length of 'i' is '0', the result is an object
          of class '"noneIndex"'. Otherwise, the result is an object of
          class '"sliceIndex"' or of class '"positiveIndex"'. 

     _d_i_m(_x) <- _v_a_l_u_e Set a dimension on 'x'. If value is of length 2,
          this may create a "matrixIndex". 

     '_x[]': Subset x with the subscript missing. Result is x. 

     '_a_l_l_N_A(_x)': Are all elements of 'x' 'NA'? Result is always
          'FALSE'. 

     '_a_n_y_N_A(_x)': Is any element of 'x' 'NA'? Result is always 'FALSE'. 

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

     '_l_e_n_g_t_h(_x) <- _v_a_l_u_e': Modify the length of 'x'. If 'value' is '0',
          makes 'x' an object of class '"noneIndex"'. Otherwise,
          modifies length of 'x' to 'value'. 

     '_n_a_m_e_s(_x)': Returns the 'Names' slot of 'x'. 

     '_n_a_m_e_s(_x) <- _v_a_l_u_e ': Sets the 'Names' slot of 'x' to 'value'. 

