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 / base / deparse < prev    next >
Encoding:
Text File  |  1997-04-23  |  766 b   |  28 lines

  1.     
  2.     _E_x_p_r_e_s_s_i_o_n _D_e_p_a_r_s_i_n_g
  3.     
  4.          deparse(expr)
  5.     
  6.     _V_a_l_u_e:
  7.     
  8.          This function turns unevaluated expressions into char-
  9.          acter strings (a kind of inverse  parse).  A typical
  10.          use of this is to create informative labels for data
  11.          sets and plots.  The following example shows a simple
  12.          use of this facility.  It uses the functions deparse
  13.          and substitute to create labels for a plot which are
  14.          character string versions of the actual arguments to
  15.          the function myplot.
  16.     
  17.     _S_e_e _A_l_s_o:
  18.     
  19.          substitute, parse.
  20.     
  21.     _E_x_a_m_p_l_e_s:
  22.     
  23.          myplot <-
  24.          function(x, y)
  25.              plot(x, y, xlab=deparse(substitute(x)),
  26.                  ylab=deparse(substitute(y)))
  27.     
  28.