hashCode                package:R.oo                R Documentation

_G_e_t_s _a_n _i_n_t_e_g_e_r _h_a_s_h_c_o_d_e_d _f_o_r _R _o_b_j_e_c_t_s

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

     Gets an integer hashcoded for R objects.

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

     ## Default S3 method:
     hashCode(object, ...)

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

  object: A 'vector' or 'list' of R objects.

     ...: Not used.

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

     A 'character' string is converted into a hashcode following Java
     conventions by 's[1]*31^(n-1) + s[2]*31^(n-2) + ... + s[n]' using
     integer arithmetic, where 's[i]' is the 'i':th character of the
     string, 'n' is the length of the string. The hash value of the
     empty string is zero.

     For all other objects, by default 'as.integer()' is called.

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

     Returns a 'vector' of 'integer''s.

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

     Henrik Bengtsson (<URL: http://www.braju.com/R/>)

