Skip to content

Instantly share code, notes, and snippets.

@juanchiem
Last active March 18, 2021 17:04
Show Gist options
  • Save juanchiem/7f7338c9b03112f8ea14830a204442d9 to your computer and use it in GitHub Desktop.
Save juanchiem/7f7338c9b03112f8ea14830a204442d9 to your computer and use it in GitHub Desktop.
library(tidyverse)
library(googlesheets4)
library(gapminder)
gs4_deauth()
red <- gs4_get("1HSoj5M--kcW-WioiwMbbngrqdkSC-bqpumeDIIlbx18")
gs4_browse(red)
# red %>% sheet_names() %>%
# map_df(~ read_sheet(red, sheet = .)) %>%
# bind_rows()
# se pierde identidad de los ensayos
dat <- data_frame(ensayo = red %>% sheet_names()) %>%
mutate(data = map(ensayo, ~read_sheet(red, sheet = .x))) %>%
tidyr::unnest(cols = c(data))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment