The R Project SVN R

Rev

Rev 30825 | Rev 39381 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 30825 Rev 35357
Line 29... Line 29...
29
}
29
}
30
\value{
30
\value{
31
  \code{numeric} creates a real vector of the specified length.  The
31
  \code{numeric} creates a real vector of the specified length.  The
32
  elements of the vector are all equal to \code{0}.
32
  elements of the vector are all equal to \code{0}.
33
 
33
 
34
  \code{as.numeric} attempts to coerce its argument to numeric type
34
  \code{as.numeric} attempts to coerce its argument to a numeric \link{type}
35
  (either integer or real).
35
  (either integer or real).
36
  \code{as.numeric} for factors yields the codes underlying the factor
36
  \code{as.numeric} for factors yields the codes underlying the factor
37
    levels, not the numeric representation of the labels.
37
  levels, not the numeric representation of the labels.
38
 
38
    
39
  \code{is.numeric} returns \code{TRUE} if its argument is of type numeric
39
  \code{is.numeric} returns \code{TRUE} if its argument is of
-
 
40
  \link{mode} \code{"numeric"} (\link{type} \code{"double"} or type
40
  or type integer and \code{FALSE} otherwise.
41
  \code{"integer"}) and not a factor, and \code{FALSE} otherwise.
41
}
42
}
42
 
43
 
43
\note{
44
\note{
44
  \emph{\R has no single precision data type.  All real numbers are
45
  \emph{\R has no single precision data type.  All real numbers are
45
    stored in double precision format}.
46
    stored in double precision format}.