This file contains hidden or 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
| # Configurações iniciais | |
| set.seed(123) # Para reprodutibilidade | |
| n <- 5300 # Número total de funcionários | |
| meta_media <- 45 # Média em milhões | |
| # 1. Definir os grupos e probabilidades | |
| # Grupo A: 4% (abaixo de $1M) - Ex: 0 a 0.99 | |
| # Grupo B: 42% (entre $1M e $10M) - Ex: 1 a 9.99 | |
| # Grupo C: 54% (acima de $10M) - Ex: 10 a ... |
This file contains hidden or 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
| ###Dívidas ativas de MEI | |
| WITH divida_ativa AS ( | |
| SELECT | |
| 'Dívida ativa não previdenciária' AS tipo_divida_ativa, | |
| REGEXP_REPLACE(cpf_cnpj, r'[^0-9]', '') AS cpf_cnpj, | |
| sum(valor_consolidado) as total_consolidado | |
| FROM basedosdados.br_mf_divida_ativa.nao_previdenciario | |
| WHERE | |
| ano = 2026 and |
This file contains hidden or 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
| library(tesouror) | |
| library(tidyverse) | |
| ufs<- | |
| tibble::tribble( | |
| ~sigla_uf, ~uf, ~cod_ibge, | |
| "AC", "Acre", 12, |
This file contains hidden or 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
| library(tesouror) | |
| library(tidyverse) | |
| ano_ini<- 2019 | |
| ano_fim<- 2025 | |
| anexos_previdencia<- | |
| (tesouror::get_anexos() %>% | |
| filter(str_detect(anexo, "RREO-Anexo 04"), |
This file contains hidden or 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
| --- | |
| title: "Transição na geração de energia elétrica" | |
| subtitle: "Números e geografia da opção brasileira pela energia renovável" | |
| output: | |
| html_document: | |
| code_folding: hide | |
| date: "2025-08-15" | |
| --- | |
| ```{r setup, include=TRUE} |
This file contains hidden or 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
| --- | |
| title: "storytelling_sazonalidade_respiratoria" | |
| author: "Fernando Almeida Barbalho" | |
| date: "2026-04-24" | |
| output: html_document | |
| --- | |
| ```{r setup, include=FALSE} | |
| knitr::opts_chunk$set(echo = FALSE, warning = FALSE, message = FALSE) | |
| library(tidyverse) |
This file contains hidden or 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
| knitr::opts_chunk$set(echo = FALSE, warning = FALSE, message = FALSE) | |
| library(tidyverse) | |
| library(colorspace) | |
| #Fonte dos dados: | |
| #https://www.fao.org/faostat/en/#data | |
| dados_fao_producao_alimentos_qty <- |
This file contains hidden or 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
| ```{r setup, include=FALSE} | |
| knitr::opts_chunk$set(echo = FALSE, warning = FALSE, message = FALSE) | |
| library(tidyverse) | |
| library(colorspace) | |
| fauna_uc_26nov2025_trabalho <- readRDS("~/github/30DayChartChallenge/fauna_uc_26nov2025_trabalho.rds") | |
| categorias_validas<- c("Menos Preocupante (LC)", "Quase Ameaçada (NT)", "Vulnerável (VU)","Em Perigo (EN)", "Criticamente em Perigo (CR)", "Regionalmente Extinta (RE)" ) |
This file contains hidden or 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
| ```{r setup, include=FALSE} | |
| knitr::opts_chunk$set(echo = FALSE, warning = FALSE, message = FALSE) | |
| library(tidyverse) | |
| brazil_full <- readRDS("/cloud/project/brazil_full.rds") | |
| eu_countries_2021 <- readRDS("/cloud/project/eu_countries_2021.rds") | |
| mundo_bio_trade <- readRDS("/cloud/project/mundo_bio_trade.rds") | |
| continente_bio_trade <- readRDS("/cloud/project/continente_bio_trade.rds") | |
This file contains hidden or 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
| library(tidyverse) | |
| library(readxl) | |
| endereco_base<- "https://anfavea.com.br/docs/siteautoveiculos" | |
| nomme_sheet<- "III. Licenciamento Combustível" | |
NewerOlder