input: Data Input

Description Usage Arguments Details Value Author(s)

Description

Reads a file or relation from the disk and creates an object of class "data".

Usage

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)

Arguments

relation

For Read: the relation to read.

For ReadRelation: the relation whose schema is used.

file

the path of the file to read expressed as a character.

skip

as the argument of the same name in read.csv. Should be adjusted accordingly to account for a header line.

attributes

the desired column names for the data. See ‘Details’ for more information.

sep

as the argument of the same name in read.csv

simple

should the simple algorithm be used.

nrows

the number of rows used by read.csv to get a sample.

...

For ReadCSV: additional arguments to read.csv.

For ReadFile: additional arguments to read.table.

gi

a templated GI function.

Details

All four functions construct an object of class "data" in different fashions.

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.

Value

An object of class "data" that represents the relevant data.

Author(s)

Jon Claus at Tera Insights LLC


tera-insights/gtBase documentation built on May 31, 2019, 8:35 a.m.