gs_engines: Lists the browser engines and visits to them for a single...

View source: R/gs_engines.R

gs_enginesR Documentation

Lists the browser engines and visits to them for a single date.

Description

Lists the browser engines and visits to them for a single date.

Usage

gs_engines(id, date = NULL, key = NULL, keyname = "GaugesKey", ...)

Arguments

id

Your gaug.es id

date

Date format YYYY-MM-DD. This works in a weird way. If you give no date, you get the traffic for each day since the beginning of the current month, but if you give a date, you get the traffic for each day for that entire month.

key

API key. If left NULL, function looks for key in your options settings defined in the keyname parameter

keyname

Your API key name in your .Rprofile file

...

Curl debugging options passed in to GET

Note

Note that these examples only work if you provide your Gaug.es API key either by passing in the function, or storing your key in your .Rprofile file, defaults to looking for an entry of "GaugesKey".

Examples

## Not run: 
gs_engines(id='4efd83a6f5a1f5158a000004')

# or get a gauge id using X
out <- gs_gauge_list()
gs_engines(id=out$brief[13,'id'])
gs_engines(id=out$brief[13,'id'], date="2014-11-01")

## End(Not run)

ropensci/rgauges documentation built on May 18, 2022, 6:35 p.m.