first                package:quantmod                R Documentation

_R_e_t_u_r_n _F_i_r_s_t _o_r _L_a_s_t _E_l_e_m_e_n_t _o_f _D_a_t_a

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

     A simple generic function to return the first or last element or
     row of a vector or two-dimensional data object.

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

     first(x,...)
     last(x,...)

     ## Default S3 method:
     first(x,...)

     ## Default S3 method:
     last(x,...)

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

       x: 1 or 2 dimensional data object 

     ...: additional args - unused 

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

     A simple wrapper to extract the first or last element of an
     object.

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

     A one element/row data object

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

     Jeffrey A. Ryan

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

     first(1:100)
     last(1:100)

     data(LakeHuron)
     first(LakeHuron)
     last(LakeHuron)

