import {rtracklayer} | R Documentation |
Imports an object from a connection according to a specified format.
import(con, format, text, ...)
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. |
This function delegates to a format-specific function named according
to the scheme import.format
where format
is specified by the
format
parameter.
The object parsed from the connection or text.
Michael Lawrence
export
to do the reverse.
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")