The R Project SVN R

Rev

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

Rev 61150 Rev 61168
Line 72... Line 72...
72
  \code{\link{round}} (and \code{ceiling} and \code{floor} on that help
72
  \code{\link{round}} (and \code{ceiling} and \code{floor} on that help
73
  page) to convert to integral values.
73
  page) to convert to integral values.
74
}
74
}
75
\examples{
75
\examples{
76
## as.integer() truncates:
76
## as.integer() truncates:
77
x <- pi * c(-1:1,10)
77
x <- pi * c(-1:1, 10)
78
as.integer(x)
78
as.integer(x)
79
 
79
 
80
is.integer(1) # is FALSE !
80
is.integer(1) # is FALSE !
81
 
81
 
82
is.wholenumber <-
82
is.wholenumber <-