Rev 7247 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{logical}\alias{logical}\alias{as.logical}\alias{as.logical.default}\alias{is.logical}\alias{TRUE}\alias{FALSE}\alias{T}\alias{F}\title{Logical Vectors}\description{Create or test for objects of type \code{"logical"}, and the basiclogical ``constants''.}\usage{TRUEFALSET; Flogical(length = 0)as.logical(x)is.logical(x)}\details{\code{TRUE} and \code{FALSE} are part of the \R language, where\code{T} and \code{F} are global variables set to these.All four are \code{logical(1)} vectors.}\value{\code{logical} creates a logical vector of the specified length.Each element of the vector is equal to \code{FALSE}.\code{as.logical} attempts to coerce its argument to be of logicaltype. For \code{\link{factor}}s, this uses the \code{\link{levels}}(labels) and not the \code{\link{codes}}.\code{is.logical} returns \code{TRUE} or \code{FALSE} depending onwhether its argument is of logical type or not.}\keyword{classes}\keyword{logic}