download_cp: Download Cartoes de Pagamentos

Description Usage Arguments Value Examples

View source: R/download_data.R

Description

Download Cartoes de Pagamentos

Usage

1
download_cp(year = NULL, month = NULL, type = NULL, ...)

Arguments

year

integer between 2013 and 2019

month

integer between 1 and 12

type

must be 'cpgf' (cartao de pagamentos do governo federal), 'cpcc' (cartao de pagamentos do governo federal - compras centralizadas) or 'cpdc' (cartao de pagamentos da defesa civil)

...

additional parameters

Value

data.frame

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
(x <- download_cp(year = 2014, month = 1, type = 'cpgf'))
(x <- download_cp(year = 2015, month = 1, type = 'cpcc'))
(x <- download_cp(year = 2015, month = 1:2, , type = 'cpdc'))

## Not run: 
 (x <- download_cp(year = "2014", month = 2, type = 'cpdc'))
 (x <- download_cp(year = 2014, type = 'cpdc'))
 (x <- download_cp(year = 2014, month = 3, type = c('cpcc', 'cpdc')))
 (x <- download_cp(year = 2014, month = 3))

## End(Not run)

stats4good/transpbrr documentation built on Oct. 21, 2019, 6:08 p.m.