knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of sgat package is to retrieve information from Google's searches' "Popular Times" and geolocation.
You can install the released version of sgat package from CRAN with:
install.packages("sgat")
And the development version from GitHub with:
# install.packages("devtools") devtools::install_github("matiaspoullain/sgat")
Once you've download the information, you can use it to compare the mos popular hours in the week between places and there relative poositions. Here is an example of its use in Pinamar city in Argentina:
https://matiaspoullain.shinyapps.io/Concurrencias_Pinamar/?_ga=2.194611503.386324231.1613673572-1914966656.1612880733
All that information was recolected using the following code:
library(sgat) initialization_sgat() rest.pinamar <- restaurantes_general("Pinamar, argentina") rest.pinamar <- paste(rest.pinamar, ", Pinamar, Argentina", sep = "") for(i in rest.pinamar){ sgat(i, tiempo.espera = 20, carpeta.guardado = "Pinamar") }
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.