Package ecoseries. R topics documented: September 27, 2017

Similar documents
Package cattonum. R topics documented: May 2, Type Package Version Title Encode Categorical Features

Package datasets.load

Package SEMrushR. November 3, 2018

Package oec. R topics documented: May 11, Type Package

Package sfc. August 29, 2016

Package repec. August 31, 2018

Package pwrab. R topics documented: June 6, Type Package Title Power Analysis for AB Testing Version 0.1.0

Package messaging. May 27, 2018

Package validara. October 19, 2017

Package fastqcr. April 11, 2017

Package ggimage. R topics documented: November 1, Title Use Image in 'ggplot2' Version 0.0.7

Package fastdummies. January 8, 2018

Package ECctmc. May 1, 2018

Package utilsipea. November 13, 2017

Package ggimage. R topics documented: December 5, Title Use Image in 'ggplot2' Version 0.1.0

Package GetITRData. October 22, 2017

Package geniusr. December 6, 2017

Package RYoudaoTranslate

Package gtrendsr. October 19, 2017

Package TrafficBDE. March 1, 2018

Package BANEScarparkinglite

Package bigreadr. R topics documented: August 13, Version Date Title Read Large Text Files

Package regexselect. R topics documented: September 22, Version Date Title Regular Expressions in 'shiny' Select Lists

Package rdryad. June 18, 2018

Package deductive. June 2, 2017

Package d3plus. September 25, 2017

Package available. November 17, 2017

Package vip. June 15, 2018

Package autoshiny. June 25, 2018

Package humanize. R topics documented: April 4, Version Title Create Values for Human Consumption

Package spark. July 21, 2017

Package raker. October 10, 2017

Package kirby21.base

Package gtrendsr. August 4, 2018

Package ether. September 22, 2018

Package canvasxpress

Package calpassapi. August 25, 2018

Package tidyimpute. March 5, 2018

Package spelling. December 18, 2017

Package strat. November 23, 2016

Package slickr. March 6, 2018

Package bisect. April 16, 2018

Package pdfetch. October 15, 2017

Package rzeit2. January 7, 2019

Package dbx. July 5, 2018

Package estprod. May 2, 2018

Package crossword.r. January 19, 2018

Package tidytransit. March 4, 2019

Package editdata. October 7, 2017

Package readxl. April 18, 2017

Package wikitaxa. December 21, 2017

Package rbraries. April 18, 2018

Package geojsonsf. R topics documented: January 11, Type Package Title GeoJSON to Simple Feature Converter Version 1.3.

Package jstree. October 24, 2017

Package wrswor. R topics documented: February 2, Type Package

Package rnrfa. April 13, 2018

Package lumberjack. R topics documented: July 20, 2018

Package qualmap. R topics documented: September 12, Type Package

Package statsdk. September 30, 2017

Package mdftracks. February 6, 2017

Package facerec. May 14, 2018

Package shinyhelper. June 21, 2018

Package opencage. January 16, 2018

Package tm.plugin.lexisnexis

Package embed. November 19, 2018

Package WordR. September 7, 2017

Package librarian. R topics documented:

Package exifr. October 15, 2017

Package gggenes. R topics documented: November 7, Title Draw Gene Arrow Maps in 'ggplot2' Version 0.3.2

Package rgho. R topics documented: January 18, 2017

Package fingertipsr. May 25, Type Package Version Title Fingertips Data for Public Health

Package tidyselect. October 11, 2018

Package IATScore. January 10, 2018

Package semver. January 6, 2017

Package rgdax. January 7, 2019

Package barcoder. October 26, 2018

Package autocogs. September 22, Title Automatic Cognostic Summaries Version 0.1.1

Package coga. May 8, 2018

Package censusapi. August 19, 2018

Package vesselr. R topics documented: April 3, Type Package

Package comparedf. February 11, 2019

Package shinyfeedback

Package sessioninfo. June 21, 2017

Package essurvey. August 23, 2018

Package zoomgrid. January 3, 2019

Package jpmesh. December 4, 2017

Package PCADSC. April 19, 2017

Package censusr. R topics documented: June 14, Type Package Title Collect Data from the Census API Version 0.0.

Package tm.plugin.factiva

Package data.world. April 5, 2018

Package projector. February 27, 2018

Package jdx. R topics documented: January 9, Type Package Title 'Java' Data Exchange for 'R' and 'rjava'

Package geogrid. August 19, 2018

Package pkgbuild. October 16, 2018

Package snakecase. R topics documented: March 25, Version Date Title Convert Strings into any Case

Package dkanr. July 12, 2018

Package ompr. November 18, 2017

Package goodpractice

Package rcv. August 11, 2017

Package smapr. October 20, 2017

Transcription:

Package ecoseries September 27, 2017 Title An R Interface to Brazilian Central Bank and Sidra APIs and the IPEA Data Version 0.1.5 Date 2017-09-27 Maintainer Fernando Teixeira <fernando.teixeira@fgv.br> BugReports https://github.com/fernote7/ecoseries/issues Creates an R interface to the Bacen <http://api.bcb.gov.br/> and Sidra <http://api.sidra.ibge.gov.br> APIs and IPEA data <http://www.ipeadata.gov.br/defau Depends R (>= 3.3.1) License GPL-3 Encoding UTF-8 LazyData true RoxygenNote 6.0.1 Imports RCurl, rjson, rvest, stats, xml2, magrittr, readr, tibble, zoo Suggests xlsx NeedsCompilation no Author Fernando Teixeira [aut, cre], Jonatha Azevedo [aut] Repository CRAN Date/Publication 2017-09-27 18:39:25 UTC R topics documented: ecoseries........................................... 2 series_bacen......................................... 2 series_ipeadata....................................... 3 series_sidra......................................... 3 Index 5 1

2 series_bacen ecoseries An R interface to Brazilian Central Bank and Sidra APIs and the IPEA data website The ecoseries package has three main functions, two to gather data from the Brazilian Central Bank (Bacen) and Sidra (IBGE) and another to gather Institute of Applied Economic Research data (IPEA). The series_bacen function takes advantage of the Bacen API ("http://api.bcb.gov.br/") to access this sistem "https://www3.bcb.gov.br/sgspub/localizarseries/localizarseries.do?method=preparartelalocalizarseries", load and save the series. You can either save in csv or xlsx formats. The series_ipea function accesses a simpler section of the ipeadata website and harvests the informations based on series numbers. The series_sidra function uses the Sidra API ("http://api.sidra.ibge.gov.br") to load and save the series. You can either save in csv or xlsx formats. series_bacen A function to extract BACEN series using their API A function to extract BACEN series using their API series_bacen(x, from = "", to = "", save = "") x from to save Bacen series numbers. Either an integer or a numeric vector. A string specifying where the series shall start. A string specifying where the series shall end. A string specifying if data should be saved in csv or xlsx format. Defaults to not saving. bacen = series_bacen(x=c(2465, 1242))

series_ipeadata 3 series_ipeadata A function to extract IPEA series using their API A function to extract IPEA series using their API series_ipeadata(arg1,..., periodicity = c("y", "D", "M", "Q"), save = "") arg1 ipea series number.... More series number. periodicity save A string specifying the periodicity. A string specifying if data should be saved in csv or xlsx format. Defaults to not saving. # ipea=series_ipeadata(162225812, periodicity = c("d")) series_sidra A function to extract Sidra series using their API The different parameters define the table and its dimensions (periods, variables, territorial units and classification) to be consulted. The parameters that define the sections may vary from table to table. Henceforth, the Sidra function ranges between 2 mandatory arguments - x (the series number) and territory (the geographic scope) to 6 arguments, where you can input the time window wanted, the variables and the sections. You can only choose one variable per series per request, but multiple sections within the variable. series_sidra(x, from = NULL, to = NULL, territory = c(n1 = "brazil", n2 = "region", n3 = "state"), variable = "allxp", cl = NULL, sections = NULL)

4 series_sidra x from to territory variable cl sections Sidra series number. A string or character vector specifying where the series shall start. Defaults to 1980. A string or character vector specifying where the series shall end. Defaults to current year. Specifies the desired territorial levels. An integer describing what variable characteristics are to be returned. Defaults to all available. A vector containing the classification codes in a vector A vector or a list of vectors if there are two or more classification codes containing the desired tables from the classification. sidra=series_sidra(x = c(1612), from = 1990, to = 2015, territory = "brazil") # sidra=series_sidra(x = c(3653), from = c("200201"), # to = c("201512"), territory = "brazil", # variable = 3135, sections = c(129316,129330),cl = 544) # sidra=series_sidra(x = c(3653), from = c("200201"), # to = c("201512"), territory = "brazil", variable = 3135, # sections = "all", cl = 544) # sidra=series_sidra(x = c(1618), from = c("201703"), to = c("201703"), # territory = "brazil", # variable = 109, sections=list(c(39427), c(39437,39441)), cl = c(49, 48)) # trim - x = 1620; from = 199001; to = 201701; territory = "brazil"; # sections=list(c(90687)); cl =c(11255); variable = 583 # sidra = series_sidra(x = 1620, from = 199001, to = 201701, # territory = "brazil", # sections=list(c(90687)), cl =c(11255), variable = 583)

Index Topic bacen series_bacen, 2 Topic bcb Topic economics Topic ibge Topic ipeadata Topic ipea Topic sidra series_sidra, 3 series_bacen, 2 series_sidra, 3 5