unname                 package:base                 R Documentation

_R_e_m_o_v_e '_n_a_m_e_s' _o_r '_d_i_m_n_a_m_e_s'

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

     Remove the 'names' or 'dimnames' attribute of an R object.

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

     unname(obj, force = FALSE)

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

     obj: an R object.

   force: logical; if true, the 'dimnames' are even removed from
          'data.frame's. _This argument is currently *experimental* and
          hence might change!_

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

     Object as 'obj' but without 'names' or 'dimnames'.

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

     require(graphics); require(stats)

     ## Answering a question on R-help (14 Oct 1999):
     col3 <- 750+ 100*rt(1500, df = 3)
     breaks <- factor(cut(col3,breaks=360+5*(0:155)))
     z <- table(breaks)
     z[1:5] # The names are larger than the data ...
     barplot(unname(z), axes= FALSE)

