resource: Creates a resource.

Description Usage Arguments Value Examples

Description

Setups and returns a resource available in a Hivepod backend.

Usage

1
resource(connection, resourceName)

Arguments

connection

The connection created with the connect() function.

resourceName

The resource name used in Hivepod. Note that is uses to be a plural name.

Value

resource() returns a resource object for a Hivepod backend. This resource object can be used to make queries, count and manipulate data in the backend.

Examples

1
2
3
4
cnx <- connect("http://jacaton-r.herokuapp.com", "demo", "1234") 
exo <- resource(cnx, "exoplanets") 
whe <- resource(cnx, "wheathers") 
oly <- resource(cnx, "olympicMedals") 

SevillaR/HivepodR documentation built on May 9, 2019, 1:23 p.m.