Rev 27625 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{NULL}\title{The Null Object}\usage{NULLas.null(x, \dots)is.null(x)}\alias{NULL}\alias{as.null}\alias{as.null.default}\alias{is.null}\description{\code{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 whosevalue is undefined.\code{as.null} ignores its argument and returns the value \code{NULL}.\code{is.null} returns \code{TRUE} if its argumentis \code{NULL} and \code{FALSE} otherwise.}\details{\code{is.null} is generic: you can write methods to handlespecific classes of objects, see \link{InternalMethods}.}\arguments{\item{x}{an object to be tested or coerced.}\item{\dots}{ignored.}}\references{Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988)\emph{The New S Language}.Wadsworth \& Brooks/Cole.}\examples{is.null(list()) # FALSE (on purpose!)is.null(integer(0))# Fis.null(logical(0))# Fas.null(list(a=1,b='c'))}\keyword{attribute}\keyword{manip}\keyword{list}\keyword{sysdata}