Learn R Programming

cpgfR (version 0.0.1.0)

get_cpgf: Download the database the Federal Government Payment Card CPGF - Brazil

Description

Download the database the Federal Government Payment Card CPGF - Brazil

Usage

get_cpgf(year, month, deflate = NULL, index_deflate = "ipca")

Value

(get_cpgf) returns a data.frame

Arguments

year

Valid options are 2013 to corrent.

month

Valid options are 01 to 12.

deflate

By default, it is NULL, but when a value is provided in the format month/year (mm/yyyy), the corrected value is calculated using the selected inflation index and create variable "valor_transacao_deflacionado", which is IPCA by default. For more information, see the deflateBR package.

index_deflate

If deflate is not NULL, IPCA is used by default. For more information, see the deflateBR package.

Examples

Run this code
# \donttest{
# Download data on the Federal Government Payment Card (CPGF)
if(interactive() && curl::has_internet()) {
  cartao <- get_cpgf(2023, 12)
  }
# }

Run the code above in your browser using DataLab