Skip to content

An example using R to interact with the Water Hub with an SQL type query.

Notifications You must be signed in to change notification settings

CBWaterHub/waterhub-r-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Water Hub R SQL Example

In this example, we will use R to query the Water Hub datastore using SQL syntax.

Requires

  • R must be installed
  • Install the "httr" package from R By doing the following:
    • Open the R console with R in the terminal
    • Run: install.packages("httr")
    • Follow the prompts to select a mirror and download the packages required for "httr"

Run the example using R Console

  • Navigate to the current working directory and open "R" in the terminal
  • Run the source as: source("waterhub-r-example.r")

Or to run with RStudio

  • Open the script in R Studio
  • Click the "Source" button to run it!

Screenshot snippet of the outcome

Screenshot of the resulting R output

Made by the Water Hub Team

About

An example using R to interact with the Water Hub with an SQL type query.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages