keep                  package:gdata                  R Documentation

_R_e_m_o_v_e _A_l_l _O_b_j_e_c_t_s, _E_x_c_e_p_t _T_h_o_s_e _S_p_e_c_i_f_i_e_d

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

     Remove all objects from the default workspace, except those
     specified.

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

     keep(..., list = character(0), sure = FALSE)

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

     ...: objects to be kept, specified one by one, quoted or unquoted.

    list: character vector of object names to be kept.

    sure: whether to perform the removal, otherwise return names of
          objects that would have been removed.

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

     Convenient interface to 'rm()' when removing most objects from the
     default workspace.

     Implemented with a few safety caps: objects whose name starts with
     a period ''.'' are not removed, and 'sure=TRUE' is required to
     perform the removal.

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

     A character vector containing object names, or 'NULL' when 'sure'
     is 'TRUE'.

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

     Arni Magnusson arnima@u.washington.edu

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

     'rm'.

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

     data(women, cars)
     keep(cars)
     ## To remove all objects except cars, run:
     ## keep(cars, sure=TRUE)

