home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Educational / R-0.49-MI / R-0.49-I / help / date / as.date < prev    next >
Encoding:
Text File  |  1997-09-13  |  1.2 KB  |  33 lines

  1.     
  2.     _C_o_e_r_c_e _d_a_t_a _t_o _d_a_t_e _f_o_r_m _C_o_n_v_e_r_t_s _a_n_y _o_f _t_h_e _f_o_l_l_o_w_i_n_g _c_h_a_r_-
  3.     _a_c_t_e_r _f_o_r_m_s _t_o _a _J_u_l_i_a_n _d_a_t_e: _8/_3_1/_5_6, _8-_3_1-_1_9_5_6, _3_1 _8 _5_6,
  4.     _0_8_3_1_5_6, _3_1_A_u_g_5_6, _o_r _A_u_g_u_s_t _3_1 _1_9_5_6.
  5.     
  6.          as.date(x, order="mdy", ...)
  7.     
  8.     _A_r_g_u_m_e_n_t_s:
  9.     
  10.                 x:
  11.          input data vector.
  12.     
  13.             order:
  14.          if x is character, defines the order in which the terms
  15.          are assumed to appear in a xx/xx/xx date.  The default
  16.          is month/day/year; any permutation of mdy is legal.
  17.     
  18.          if x is character, then any other arguments from the
  19.          mdy.date function can be used as well.
  20.     
  21.          Value:
  22.     
  23.          for each date, the number of days between it and Janu-
  24.          ary 1, 1960.  The date will be missing if the string is
  25.          not interpretable.
  26.     
  27.          If x is numeric, then floor(x) is returned, e.g.,
  28.          as.date(35) = as.date(35.2) = Feb 2, 1960.  If x is
  29.          character, the program attempts to parse it.
  30.     
  31.          mdy.date, date.mmddyy, date.ddmmmyy
  32.     
  33.