compress            package:Rcompression            R Documentation

_I_n-_m_e_m_o_r_y _z_l_i_b _c_o_m_p_r_e_s_s_i_o_n _o_f _R _c_o_n_t_e_n_t

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

     This uses the standard zlib algorithm/format for compressing the
     input into a buffer that can be passed to other computations.

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

     compress(str, size = nchar(str) * 1.01 + 13, level = integer(3))

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

     str: the text to be compressed

    size: the size for a working buffer that zlib uses during the
          compression.

   level: the level of compression. This is a number between 0 and 9. 9
          means highly compressed, 0 means no compression at all. The
          trade-off is computational intensity: the greater the
          compression, the greater the time spent performing the
          compression. 

_V_a_l_u_e:

     A raw vector containing the compressed  contents.

_A_u_t_h_o_r(_s):

     Duncan Temple Lang

_R_e_f_e_r_e_n_c_e_s:

     zlib and bzip2

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

     'uncompress' 'gunzip' 'bunzip2'

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

      x = "A string to compress"
      g = compress(x)
      uncompress(g) == x

