| Line 44... |
Line 44... |
| 44 |
sign). Non-integral numeric values are truncated towards zero (i.e.,
|
44 |
sign). Non-integral numeric values are truncated towards zero (i.e.,
|
| 45 |
\code{as.integer(x)} equals \code{\link{trunc}(x)} there), and
|
45 |
\code{as.integer(x)} equals \code{\link{trunc}(x)} there), and
|
| 46 |
imaginary parts of complex numbers are discarded (with a warning).
|
46 |
imaginary parts of complex numbers are discarded (with a warning).
|
| 47 |
Character strings containing optional whitespace followed by either a
|
47 |
Character strings containing optional whitespace followed by either a
|
| 48 |
decimal representation or a hexadecimal representation (starting with
|
48 |
decimal representation or a hexadecimal representation (starting with
|
| 49 |
\code{0x} or \code{0X}) can be converted, as well as any allowed by
|
49 |
\samp{0x} or \samp{0X}) can be converted, as well as any allowed by
|
| 50 |
the platform for real numbers. Like \code{\link{as.vector}} it strips
|
50 |
the platform for real numbers. Like \code{\link{as.vector}} it strips
|
| 51 |
attributes including names. (To ensure that an object \code{x} is of
|
51 |
attributes including names. (To ensure that an object \code{x} is of
|
| 52 |
integer type without stripping attributes, use
|
52 |
integer type without stripping attributes, use
|
| 53 |
\code{\link{storage.mode}(x) <- "integer"}.)
|
53 |
\code{\link{storage.mode}(x) <- "integer"}.)
|
| 54 |
|
54 |
|