Description Usage Arguments Value Note Examples
Connect to a dataset like it's a database.
1 2 | ## S4 method for signature 'Data.WorldDriver'
dbConnect(drv, dataset, ...)
|
drv |
A |
dataset |
The name of a data.world dataset. E.g., "johndoe/pet_store". |
A "handle" in the form of Data.WorldConnection object.
Even though it doesn't make an API call, this function
will throw an error if your data.world API token has not been
configured. See configure
.
This ensures that any subsequent queries sent over
this connection will work.
Since data.world queries are done via API call, and there's no persistent connection, this function really just holds some basic parameters that are necessary for making API calls related to the dataset.
1 2 3 4 5 | ## Not run:
conn <- dbConnect(Data.World(), dataset='johndoe/petstore')
dbGetQuery(conn, "SELECT * FROM pets WHERE species = 'dog'")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.