fetch: Fetch a data package from the Odessa server

Description Arguments Value Usage Details Author(s) See Also Examples

Description

Download a data package with the given ID. Once downloaded, the data can be joined with other data.

Arguments

id

The ID of the data on Odessa

fn

A function to preprocess the data with

...

Optional arguments to pass to read.csv

Value

A data.frame containing the data

Usage

fetch(id, fn=clean.format, ...)

Details

Datasets can be retrieved from the Odessa platform or locally.

Author(s)

Brian Lee Yung Rowe

See Also

package_list

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
# Get remote data
geo1 <- fetch('geolocation-1')
geo2 <- fetch('geolocation-2')
gg <- conjoin(geo1, geo2, 'location')

# Get some local data
base <- system.file('extdata',package='odessa')
p1 <- paste("file:/", base, 'date1', sep='/')
p2 <- paste("file:/", base, 'date2', sep='/')
date1 <- fetch(p1)
date2 <- fetch(p2)
dd <- conjoin(date1,date2, c('year','month'))

## End(Not run)

zatonovo/odessa documentation built on May 4, 2019, 9:11 p.m.