This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
report_ndiffs <- function ( | |
x, | |
test = c("kpss", "adf", "pp"), | |
term = c("level", "trend"), | |
alpha = 0.05, | |
na_rm = TRUE | |
) { | |
# All possible tests and terms | |
ndiffs_tests <- purrr::cross(list(test = test, type = term)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Função que baixa e importa dados do Bolsa Família (Pagamentos) do | |
# Portal Transparência/CGU, apontando ano (4 digitos) e mês (2 dígitos) | |
import_pbf_pagmt <- function(year, month){ | |
# URL para acesso aos arquivos | |
base_url <- paste0( | |
"http://www.portaltransparencia.gov.br/", | |
"download-de-dados/bolsa-familia-pagamentos/" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Load packages ----------------------------------------------------------- | |
library(tidyverse) | |
library(magrittr) | |
library(readxl) | |
library(lubridate) | |
library(bbplot) # devtools::install_github('bbc/bbplot') | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Load packages | |
library(hexSticker) | |
library(cowplot) | |
library(showtext) | |
# Add a great Google Font | |
font_add_google("Do Hyeon") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
images |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.