R/data_getting.R

Defines functions data_getting

library(tidyverse)
library(rvest)
#library(here)
library(xml2)

data_getting <- function(grupos) {

  data_grupos_all <-
    apply(grupos, 1, function(x){
      URL <- read_html(httr::GET(x['url']))})

  grupo_main = data_getting_main(grupos, data_grupos_all)
  grupo_researcher = data_getting_researcher(grupos, data_grupos_all)
  grupo_product = data_getting_product(grupos, data_grupos_all)

  return(list(grupo_product=grupo_product,
              grupo_main=grupo_main,
              grupo_researcher=grupo_researcher))
}

Try the margaret package in your browser

Any scripts or data that you put into this service are public.

margaret documentation built on Oct. 4, 2022, 1:05 a.m.