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(filename, envir = sys.frame(sys.parent())))

_A_r_g_u_m_e_n_t_s:

filename: 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 global environment
     load("all.Rdata",globalenv())

