Convert or print integers in octal format, with as many digits as are needed to display the largest, using leading zeroes as necessary.
1 2 3 4 5 6 7 8 9 10
An object, for the methods inheriting from class
further arguments passed to or from other methods.
"octmode" consists of integer vectors with that class
attribute, used merely to ensure that they are printed in octal
notation, specifically for Unix-like file permissions such as
755. Subsetting (
[) works too.
width = NULL (the default), the output is padded with
leading zeroes to the smallest width needed for all the non-missing
as.octmode can convert integers (of type
"double") and character vectors whose elements contain only
0-7 (or are
NA) to class
There is a
! method and
xor methods: these recycle their arguments to the
length of the longer and then apply the operators bitwise to each
These are auxiliary functions for
sprintf for other options in
converting integers to octal,
strtoi to convert octal
strings to integers.
1 2 3 4 5 6 7 8 9
We want your feedback!
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.