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)

