octmode                 package:base                 R Documentation

_D_i_s_p_l_a_y _N_u_m_b_e_r_s _i_n _O_c_t_a_l

_D_e_s_c_r_i_p_t_i_o_n:

     Convert or print integers in octal format, with as many digits as
     are needed to display the largest, using leading zeroes as
     necessary.

_U_s_a_g_e:

     as.octmode(x)

     ## S3 method for class 'octmode':
     as.character(x, ...)

     ## S3 method for class 'octmode':
     format(x, ...)

     ## S3 method for class 'octmode':
     print(x, ...)

_A_r_g_u_m_e_n_t_s:

       x: An object, for the methods inheriting from class '"octmode"'.

     ...: further arguments passed to or from other methods.

_D_e_t_a_i_l_s:

     Class '"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.

     'as.octmode' can convert integers (of type '"integer"' or
     '"double"') and character strings to class '"octmode"'

_S_e_e _A_l_s_o:

     These are auxiliary functions for 'file.info'.

     'hexmode'

_E_x_a_m_p_l_e_s:

     (on <- structure(c(16,32, 127:129),  class = "octmode")) #-> print.*()
     ##-> "020" "040" "177" "200" "201"
     unclass(on[3:4]) # subsetting

