

attributes {base}                            R Documentation

_O_b_j_e_c_t _A_t_t_r_i_b_u_t_e _L_i_s_t_s

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

     This function provides access to an object's attribute
     list.  The simple form above returns the an object's
     attribute list.  The assignment form makes the list on
     the right-hand side of the assignment, the object's
     attribute list.

_U_s_a_g_e_:

     attributes(obj)
     attributes(obj) <- list

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

     `attr'.

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

     x <- cbind(a=1:3, pi=pi) # simple matrix w/ dimnames
     attributes(x)

     # strip an objects attributes:
     attributes(x) <- NULL
     x # now just a vector of length 6

