Skip to content

Instantly share code, notes, and snippets.

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
Generate Manual Table of Contents in (R)Markdown Documents. Credits: gadenbuie
View render_toc.R
#' 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 Jul 18, 2021
Trabalho final de Limpeza de Dados realizado para conclusão do curso de Faxina de Dados.
View AugustoCL - TrabalhoFinal - Faxinadados.R
# 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
Criando Base de Dados via Webscraping da ANBIMA [Webscraping] [R]
View coef_curv_anbima_scheduler.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)