Skip to content

Instantly share code, notes, and snippets.

View AugustoCL's full-sized avatar
Always learning and contributing

Augusto C. Leal AugustoCL

Always learning and contributing
View GitHub Profile
@AugustoCL
AugustoCL / render_toc.R
Created May 30, 2021 02:48
Generate Manual Table of Contents in (R)Markdown Documents. Credits: gadenbuie
#' Render Table of Contents
#'
#' A simple function to extract headers from an RMarkdown or Markdown document
#' and build a table of contents. Returns a markdown list with links to the
#' headers using
#' [pandoc header identifiers](http://pandoc.org/MANUAL.html#header-identifiers).
#'
#' WARNING: This function only works with hash-tag headers.
#'
#' Because this function returns only the markdown list, the header for the
@AugustoCL
AugustoCL / AugustoCL - TrabalhoFinal - Faxinadados.R
Last active July 18, 2021 04:28
Trabalho final de Limpeza de Dados realizado para conclusão do curso de Faxina de Dados.
# Imports -----------------------------------------------------------------
library(tidyverse)
library(httr)
library(rvest)
library(janitor)
# Função webscraping ------------------------------------------------------
scrapy_consumo_eletr_ano <- function(ano){
@AugustoCL
AugustoCL / coef_curv_anbima_scheduler.R
Created May 23, 2021 17:38
Criando Base de Dados via Webscraping da ANBIMA [Webscraping] [R]
# imports -----------------------------------------------------------------
library(tidyverse)
library(httr)
library(bizdays)
# set inputs and workdir --------------------------------------------------------------
wkdir <- "~/dev_R/schedule_R/"
name_db <- "hist_coef_pre_ipca.csv"
setwd(wkdir)