matlabColon         package:ffmanova         R Documentation(latin1)

_S_i_m_u_l_a_t_e _M_a_t_l_a_b'_s :

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

     A function to simulate Matlab's : operator.

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

     matlabColon(from, to)

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

    from: numeric.  The start value.

      to: numeric.  The end value.

_D_e_t_a_i_l_s:

     'matlabCode(a,b)' returns 'a:b' (R's version) unless 'a > b', in
     which case it returns 'numeric(0)'.

_V_a_l_u_e:

     A numeric vector, possibly empty.

_A_u_t_h_o_r(_s):

     Bjrn-Helge Mevik

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

     'seq'

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

     identical(3:5, matlabColon(3, 5)) ## => TRUE
     3:1 ## => 3 2 1
     matlabColon(3, 1) ## => numeric(0)

