Detach all data frames        package:epicalc        R Documentation

_D_e_t_a_c_h _a_l_l _d_a_t_a _f_r_a_m_e_s

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

     Detach all data frames

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

     detachAllData()

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

     The R command 'attach()' copies the data frame in the argument
     into a data frame in the search path (usually the second position)
     consequently making all the variables in the data frame easy to
     refer to. However, changing any element of the index data frame
     has no effect on the one in the search path unless the changed
     data frame is attached to the search path again. Having too many
     data frames in the search path subsequently causes confusion, not
     to mention an increase in memory usage. It is a good practice to
     detach the index data frame first before manipulating it and then
     attaching to it again. 'detachAllData()' is a self explanatory
     command which solves the over-attaching problem.

     'detachAllData()' removes all non-function objects in the R search
     path.

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

     Virasakdi Chongsuvivatwong <cvirasak@medicine.psu.ac.th>

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

     'use', 'detach', 'search'

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

     attach(CO2)
     data(Hakimi)
     attach(Hakimi)
     search()
     detachAllData()
     search()

