Description Usage Arguments Details Value Author(s)
Reads a file or relation from the disk and creates an object of class
"data"
.
1 2 3 4 5 6 7 | Read(relation)
ReadCSV(file, attributes, skip = 0, sep = ",", simple = FALSE, nrows = 10000, ...)
ReadFile(file, gi, attributes, ...)
ReadRelation(file, relation, sep = ",", simple = FALSE)
|
relation |
For For |
file |
the path of the file to read expressed as a character. |
skip |
as the argument of the same name in |
attributes |
the desired column names for the data. See ‘Details’ for more information. |
sep |
as the argument of the same name in |
simple |
should the simple algorithm be used. |
nrows |
the number of rows used by |
... |
For For |
gi |
a templated GI function. |
All four functions construct an object of class "data"
in different fashions.
Read
uses both the data and the names of the specified
relation, whereas the rest read from a file.
ReadCSV
behaves similarly to
read.csv
. The data in the specified file is read in
using character separated values, with EOL characters separating
rows. The names of the columns are detailed in the section
‘AUTO’.
ReadFile
is a generalized version of ReadCSV
and
reads a file using an arbitrary generalized input
function. Currently deprecated as there are none other than
ReadCSV
.
ReadRelation
is a specific case of ReadCSV
. The
file provides the data but the names of the relation are used. The
data is read in as ReadCSV
with skip = 0
and sep
= ", "
.
attributes
should be specified as a call to c
in which
each argument is either a symbol specifying the name of an attribute
or a name = type
pair. In the latter case, the name of the
argument specifies the name of the attribute and type
specifies
the type of that attribute. type
can either be specified as a
symbol or a call, in which the name of the call is the type to be used
and the arguments will be used to template the type.
An object of class "data"
that represents the relevant
data.
Jon Claus at Tera Insights LLC
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.