sbifapi: Generic function for the GET method of the API

Description Usage Arguments Details References Examples

View source: R/api.R

Description

Generic function for the GET method of the API

Usage

1
2
3
sbifapi(what = "dolar", frame = "fixed", apikey, formato = "JSON",
  callback = NULL, Year = lubridate::year(Sys.Date()), Month = NULL,
  Day = NULL, retry = 1)

Arguments

what

Object to retrieve (see Details)

frame

For the particular date, before that date, or after that date

apikey

API key

formato

Format of the returning data, can be either JSON or XML

callback

Callback function for JSON data

Year

Year

Month

Month

Day

Day

retry

Number of times to retry the call to the API

Details

Currently, the available objects are

References

SBIF API Documentation http://api.sbif.cl/index.html

Examples

1
2
3
4
5
6
## Not run: 
# Retrieving dollar info for 2015 and 2016
dollar2015 <- sbifapi("dolar", Year=2015, apikey="mykey")
dollar2016 <- sbifapi("dolar", Year=2016, apikey="mykey")

## End(Not run)

gvegayon/sbifapi documentation built on May 17, 2019, 9:30 a.m.