loadObject              package:R.utils              R Documentation

_M_e_t_h_o_d _t_o _l_o_a_d _o_b_j_e_c_t _f_r_o_m _a _f_i_l_e _o_r _a _c_o_n_n_e_c_t_i_o_n

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

     Method to load object from a file or a connection, which
     previously have been saved using 'saveObject'().

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

     ## Default S3 method:
     loadObject(file, path=NULL, ...)

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

    file: A filename or 'connection' to read the object from.

    path: The path where the file exists.

     ...: Not used.

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

     The main difference from this method and 'load'() in the 'base'
     package, is that this one returns the object read rather than
     storing it in the global environment by its default name. This
     makes it possible to load objects back using any variable name.

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

     Returns the save object.

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

     Henrik Bengtsson (<URL: http://www.braju.com/R/>)

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

     'saveObject'() to save an object to file. Internally 'load'() is
     used.

