export                 package:svIO                 R Documentation

_E_x_p_o_r_t _t_h_e _c_o_n_t_e_n_t _o_f _a_n _o_b_j_e_c_t _i_n _a _f_o_r_e_i_g_n _f_o_r_m_a_t

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

     'export' is a generic function to convert objects into various
     foreign formats and write it to a file or a connection.

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

         export(x, type = "raw", file, append = FALSE, objname = deparse(substitute(x)), ...)

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

       x: The object to export 

    type: 'type' gives the format in which the object should be
          converted. The list of recognized formats for this object is
          obtained with 'type = "typelist"' 

    file: The path to the file where the converted object should be
          extracted 

  append: Do we append this object to this file? 

 objname: The name of the object (by default, it is the name of the
          variable that holds it) 

     ...: Further argument passed to specific export methods 

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

     Return the result from specif exportation methods (invisibly if
     the file is written)

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

     Philippe Grosjean & Eric Lecoutre

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

     'copy'

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

         ## Not run: 
             data(iris)
             export(iris, type = "ascii", file = "iris.txt")
             # Inspect the file 'iris.txt', and then...
             unlink("iris.txt")
         
     ## End(Not run)

