R/BETSinfo.R

Defines functions BETSexpect.info BETSsources

Documented in BETSsources

#' @title Display a list of sources available at BETS package
#'
#' @description Display a list of sources available at BETS package in console. The numbers of
#' sources will increase wiht new versions of the package.
#'
#'
#' @export 


BETSsources <- function() {
    return(message("The sources available at BETS, to date, are: \n >  Banco Central, IBGE, Sidra, FGV"))
}


#' @title Display a list of contents available at BETS expectations functions
#'
#' @description Display a data frame with all informations about the expectation indicators available in BCB expectation sector
#'
#' @importFrom utils read.csv2
#' @importFrom dplyr 
#' @export 


BETSexpect.info <- function() {
    path = file.path(system.file(package="BETS"), "/expectativas_info.csv")
    data.info = read.csv2( file = path, encoding = 'LATIN1', stringsAsFactors = F)
    data.info = as_tibble(data.info)
    return(data.info)
}
nmecsys/BETS documentation built on April 8, 2021, 1:54 a.m.