Skip to content

Commit

Permalink
Ref #6 lectura de datos desde bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnyhdez committed Jul 17, 2020
1 parent 9c66a2d commit 7d2f51c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ library(readr)
library(janitor)
library(lubridate)
library(readxl)
url <- "https://storage.googleapis.com/datos_cursos/PJCROD_INDICESALARIAL_V1.xls"
indice_salarial <- read_excel("PJCROD_INDICESALARIAL_V1.xls") %>%
temp = tempfile(fileext = ".xls")
download.file(url, destfile = temp, mode = 'wb')
indice_salarial <- read_excel(temp) %>%
mutate(salario_antes = as.numeric(Salario_Base_Ant),
salario_actual = as.numeric(Salario_Base_Act),
indice = as.numeric(I_C_S))
Expand Down

0 comments on commit 7d2f51c

Please sign in to comment.