Constants                package:base                R Documentation

_B_u_i_l_t-_i_n _C_o_n_s_t_a_n_t_s

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

     Constants built into R.

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

     LETTERS
     letters
     month.abb
     month.name
     pi

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

     R has a limited number of built-in constants (there is also a
     rather larger library of data sets which can be loaded with the
     function 'data').

     The following constants are available:

        *  'LETTERS': the 26 upper-case letters of the Roman alphabet;

        *  'letters': the 26 lower-case letters of the Roman alphabet;

        *  'month.abb': the three-letter abbreviations for the English
           month names;

        *  'month.name': the English names for the months of the year;

        *  'pi': the ratio of the circumference of a circle to its
           diameter.

_R_e_f_e_r_e_n_c_e_s:

     Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) _The New S
     Language_. Wadsworth & Brooks/Cole.

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

     'data'.

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

     # John Machin (1705) computed 100 decimals of pi :
     pi - 4*(4*atan(1/5) - atan(1/239))

