Description Arguments Value Usage Details Author(s) See Also Examples
Download a data package with the given ID. Once downloaded, the data can be joined with other data.
id |
The ID of the data on Odessa |
fn |
A function to preprocess the data with |
... |
Optional arguments to pass to read.csv |
A data.frame containing the data
fetch(id, fn=clean.format, ...)
Datasets can be retrieved from the Odessa platform or locally.
Brian Lee Yung Rowe
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.