Rev 864 | Rev 5055 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{vector}\title{Vectors}\usage{vector(mode = "logical", length = 0)as.vector(x, mode = "any")is.vector(x, mode = "any")}\alias{vector}\alias{as.vector}\alias{as.vector.factor}\alias{is.vector}\description{\code{vector} produces a vector of the given length and mode. Logicalvector elements are initialized to \code{FALSE}, numeric vectorelements to \code{0} and character vector elements to \code{""}.\code{as.vector} attempts to coerce its argument into a vector of mode\code{mode} (the default is to coerce to whichever mode is mostconvenient). The attributes of \code{x} are removed.\code{is.vector} returns \code{TRUE} if \code{x} is a vector (of modelogical, factor, integer, real or character) and \code{FALSE}otherwise.}\keyword{classes}