import              package:rtracklayer              R Documentation

_I_m_p_o_r_t_i_n_g _o_b_j_e_c_t_s

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

     Imports an object from a connection according to a specified
     format.

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

     import(con, format, text, ...)

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

     con: The connection through which the data is received. If this is
          a character vector, it is assumed to be a filename. 

  format: The format in which to expect the input. If omitted and 'con'
          is a filename, the format is taken from the file extension.

    text: If 'con' is missing, this can be a character vector directly
          providing the string data to import. 

     ...: Arguments to pass to the format-specific import routines. 

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

     This function delegates to a format-specific function named
     according to the scheme 'import.format' where 'format' is
     specified by the 'format' parameter.

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

     The object parsed from the connection or text.

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

     Michael Lawrence

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

     'export' to do the reverse.

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

       track <- import(system.file("tests", "bed.wig", package = "rtracklayer"))
       track <- import(system.file("tests", "v1.gff", package = "rtracklayer"), version = "1")
       # or
       track <- import(system.file("tests", "v1.gff", package = "rtracklayer"), "gff1")

