Rev 502 | Rev 5219 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{numeric}\title{Numeric Vectors}\usage{numeric(n = 0)as.numeric(x)is.numeric(x)}\alias{numeric}\alias{as.numeric}\alias{is.numeric}\description{\code{numeric} creates a real vector of length \code{n}. The vectoris filled with zeros.\code{as.numeric} attempts to coerce its argument to numeric type(either integer or real).\code{is.numeric} returns \code{TRUE} if its argument is of type realor type integer and \code{FALSE} otherwise.}\note{\emph{\R has no single precision data type. All real numbers arestored in double precision format}.\code{as.numeric} for factors yields the codes underlying the factorlevels.}\examples{as.numeric(c("2","B"))as.numeric(factor(5:10))}\keyword{classes}\keyword{attribute}