home *** CD-ROM | disk | FTP | other *** search
-
- _E_x_p_r_e_s_s_i_o_n _D_e_p_a_r_s_i_n_g
-
- deparse(expr)
-
- _V_a_l_u_e:
-
- This function turns unevaluated expressions into char-
- acter strings (a kind of inverse parse). A typical
- use of this is to create informative labels for data
- sets and plots. The following example shows a simple
- use of this facility. It uses the functions deparse
- and substitute to create labels for a plot which are
- character string versions of the actual arguments to
- the function myplot.
-
- _S_e_e _A_l_s_o:
-
- substitute, parse.
-
- _E_x_a_m_p_l_e_s:
-
- myplot <-
- function(x, y)
- plot(x, y, xlab=deparse(substitute(x)),
- ylab=deparse(substitute(y)))
-
-