load                  package:base                  R Documentation

_R_e_l_o_a_d _S_a_v_e_d _D_a_t_a_s_e_t_s

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

     This function will reload the datasets written to a file with the
     function `save'.

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

     load(file, envir = parent.frame())

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

    file: a character string giving the name of the file to load.

   envir: the environment where the data should be loaded.

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

     `save'.

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

     ## save all data
     save(list = ls(), file= "all.Rdata")

     ## restore the saved values to the current environment
     load("all.Rdata")

     ## restore the saved values to the workspace
     load("all.Rdata", .GlobalEnv)

