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")
::install_github("matiaspoullain/sgat") devtools
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:
All that information was recolected using the following code:
library(sgat)
initialization_sgat()
<- restaurantes_general("Pinamar, argentina")
rest.pinamar
<- paste(rest.pinamar, ", Pinamar, Argentina", sep = "")
rest.pinamar
for(i in rest.pinamar){
sgat(i, tiempo.espera = 20, carpeta.guardado = "Pinamar")
}