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
#' 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 |
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
# Imports ----------------------------------------------------------------- | |
library(tidyverse) | |
library(httr) | |
library(rvest) | |
library(janitor) | |
# Função webscraping ------------------------------------------------------ | |
scrapy_consumo_eletr_ano <- function(ano){ |
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
# 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) |