| Line 10... |
Line 10... |
| 10 |
\alias{as.character.hexmode}
|
10 |
\alias{as.character.hexmode}
|
| 11 |
\alias{[.hexmode}
|
11 |
\alias{[.hexmode}
|
| 12 |
\alias{!.hexmode}
|
12 |
\alias{!.hexmode}
|
| 13 |
\alias{|.hexmode}
|
13 |
\alias{|.hexmode}
|
| 14 |
\alias{&.hexmode}
|
14 |
\alias{&.hexmode}
|
| - |
|
15 |
%% FIXME: xor() is not generic (yet?).
|
| 15 |
\alias{xor.hexmode}
|
16 |
%% \alias{xor.hexmode}
|
| 16 |
\alias{hexmode}
|
17 |
\alias{hexmode}
|
| 17 |
\title{Display Numbers in Hexadecimal}
|
18 |
\title{Display Numbers in Hexadecimal}
|
| 18 |
\description{
|
19 |
\description{
|
| 19 |
Convert or print integers in hexadecimal format, with as many digits
|
20 |
Convert or print integers in hexadecimal format, with as many digits
|
| 20 |
as are needed to display the largest, using leading zeroes as
|
21 |
as are needed to display the largest, using leading zeroes as
|
| Line 48... |
Line 49... |
| 48 |
\code{as.hexmode} can convert integers (of \link{type} \code{"integer"} or
|
49 |
\code{as.hexmode} can convert integers (of \link{type} \code{"integer"} or
|
| 49 |
\code{"double"}) and character vectors whose elements contain only
|
50 |
\code{"double"}) and character vectors whose elements contain only
|
| 50 |
\code{0-9}, \code{a-f}, \code{A-F} (or are \code{NA}) to class
|
51 |
\code{0-9}, \code{a-f}, \code{A-F} (or are \code{NA}) to class
|
| 51 |
\code{"hexmode"}.
|
52 |
\code{"hexmode"}.
|
| 52 |
|
53 |
|
| 53 |
There is a \code{\link{!}} method and \code{\link{|}}, \code{\link{&}} and
|
54 |
There is a \code{\link{!}} method and methods for \code{\link{|}} and
|
| - |
|
55 |
\code{\link{&}}:
|
| 54 |
\code{\link{xor}} methods: these recycle their arguments to the
|
56 |
%% FIXME: xor() is not generic (yet?).
|
| - |
|
57 |
%% and \code{\link{xor}}:
|
| 55 |
length of the longer and then apply the operators bitwise to each
|
58 |
these recycle their arguments to the length of the longer and then
|
| 56 |
element.
|
59 |
apply the operators bitwise to each element.
|
| 57 |
}
|
60 |
}
|
| 58 |
\seealso{
|
61 |
\seealso{
|
| 59 |
\code{\link{octmode}}, \code{\link{sprintf}} for other options in
|
62 |
\code{\link{octmode}}, \code{\link{sprintf}} for other options in
|
| 60 |
converting integers to hex, \code{\link{strtoi}} to convert hex
|
63 |
converting integers to hex, \code{\link{strtoi}} to convert hex
|
| 61 |
strings to integers.
|
64 |
strings to integers.
|