library(tidyverse)
## ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.2 ──
## ✔ ggplot2 3.3.6 ✔ purrr 0.3.4
## ✔ tibble 3.1.8 ✔ dplyr 1.0.10
## ✔ tidyr 1.2.0 ✔ stringr 1.4.1
## ✔ readr 2.1.2 ✔ forcats 0.5.2
## ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
## ✖ dplyr::filter() masks stats::filter()
## ✖ dplyr::lag() masks stats::lag()
#install.packages(“gtrendsR”)
library(gtrendsR)
devtools::install_github("PMassicotte/gtrendsR")
## Skipping install of 'gtrendsR' from a github remote, the SHA1 (d53b9b7b) has not changed since last install.
## Use `force = TRUE` to force installation
1
## [1] 1
termino <- c("Iphone")
ubicacion <- c ("MX")
canal <-"web"
periodo <- ("2020-01-01 2022-09-01")
#tendencia <- gtrends(termino, ubicacion, canal, time= periodo)
#plot(tendencia)