Learn R Programming

rbcb (version 0.1.5)

get_top5s_annual_market_expectations: Get annual market expectations from top 5 providers

Description

Statistics of top 5's annual market expectations: mean, median, standard deviate, minimum, maximum and the coefficient of variation. All statistics are computed based on expectations provided by many financial institutions in Brazil: banks, funds, risk managers, so on and so forth. These expections and its statistics are used to build the FOCUS Report weekly released by the Brazilian Central Bank.

Usage

get_top5s_annual_market_expectations(indic, start_date = NULL,
  end_date = NULL, ...)

Arguments

indic

a character vector with economic indicators names: IGP-DI, IGP-M, IPCA, Meta para taxa over-selic, Taxa de c<U+00E2>mbio.

start_date

series initial date. Accepts ISO character formated date and Date.

end_date

series final date. Accepts ISO character formated date and Date.

...

additional parameters to be passed to the API

indic argumento must be one of these: IGP-DI, IGP-M, IPCA, Meta para taxa over-selic, Taxa de c<U+00E2>mbio. Respecting the case, blank spaces and accents.

The ... is to be used with API's parameters. $top to specify the maximum number of rows to be returned, this returns the $top rows, in chronological order. There is also $skip to ignore the first rows.

Value

A data.frame with the following nine columns: date, indic, indic_detail, reference_year, type, mean, median, sd, coefvar, min, max.

Details

There are inflation's expectations available for the following indicators: IGP-DI, IGP-M, IPCA, Meta para taxa over-selic, Taxa de c<U+00E2>mbio

Examples

Run this code
# NOT RUN {
indic <- "Taxa de c<U+00E2>mbio"
end_date <- "2018-06-22"
x <- get_top5s_annual_market_expectations(indic, end_date = end_date, `$top` = 10)

# }

Run the code above in your browser using DataLab