to_dataframe: Converts returned JSON data into an R dataframe.

Description Usage Arguments Value Examples

Description

Private function. Converts returned JSON data into an R dataframe.

Usage

1
to_dataframe(response, keep_metadata = "clean")

Arguments

response

The raw response data after a query.

keep_metadata

Flag to indicate if metadatata should be handled. Suported values are: - "clean" - remove metadata (default one) - "raw" - remove metadata - "raw_links" - remove metadata links

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.