NULL                  package:base                  R Documentation

_T_h_e _N_u_l_l _O_b_j_e_c_t

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

     'NULL' represents the null object in R. NULL is used mainly to
     represent the lists with zero length, and is often returned by
     expressions and functions whose value is undefined.

     'as.null' ignores its argument and returns the value 'NULL'.

     'is.null' returns 'TRUE' if its argument is 'NULL' and 'FALSE'
     otherwise.

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

     NULL
     as.null(x, ...)
     is.null(x)

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

       x: an object to be tested or coerced.

     ...: ignored.

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

     'is.null' is generic: you can write methods to handle specific
     classes of objects, see InternalMethods.

_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.

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

     is.null(list())    # FALSE (on purpose!)
     is.null(integer(0))# F
     is.null(logical(0))# F
     as.null(list(a=1,b='c'))

