• Stars
    star
    350
  • Rank 118,532 (Top 3 %)
  • Language
    R
  • Created over 8 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

R functions to perform and display Google Trends queries

gtrendsR

GitHub Actions Build Status License CRAN Downloads

gtrendsR provides an interface for retrieving and displaying Google Trends information.

Trends (number of hits) over time as well as geographic representation of the results can be displayed.

Example

In this simple example, trends for keywords nhl, nba are retrieved for Canada and USA and then plotted from R.

library(gtrendsR)

res <- gtrends(c("nhl", "nba"), geo = c("CA", "US"))
plot(res)

Installation

Since release 1.3.0, the package is on CRAN and can be installed via

install.packages("gtrendsR")

Release-candidate packages are available in the ghrr drat repository and can installed via

install.packages("drat")       # easier repo access + creation
drat:::add("ghrr")             # make it known
install.packages("gtrendsR")   # install it

Development version (which may be less stable) can be installed directly from this repository via

if (!require("devtools")) install.packages("devtools")
devtools::install_github("PMassicotte/gtrendsR")

Using gtrendsR behind a PROXY.

If gtrendsR should be used behind a proxy, especially with NTLM authentication mode, you need to set the proxy parameters using "setHandleParameters" function

Example

library(gtrendsR)

setHandleParameters(user = "xxxx", password = "*******", domain = "mydomain", proxyhost = "10.111.124.113", proxyport = 8080)
res <- gtrends(c("nhl", "nba"), geo = c("CA", "US"))

Authors

Philippe Massicotte and Dirk Eddelbuettel

License

GPL (>= 2)

More Repositories

1

paletteer_gallery

A list of color palettes provided by the paletteer R package
HTML
19
star
2

eemR

Utilities for pre-processing emission-excitation-matrix (EEM).
R
18
star
3

cdom

The cdom package implements various functions used to model and calculate metrics from absorption spectra of chromophotic dissolved organic matter (CDOM).
R
10
star
4

tidytuesday

HTML
9
star
5

dataviz

R
6
star
6

stats-denmark-2019

Teaching material for the stats class in Denmark 2019
HTML
3
star
7

ivado_ggplot2_workshop_2022

ggplot2 workshop presented at the 2022 IVADO data.trek event
JavaScript
3
star
8

blog

My personal website
TeX
2
star
9

read-rs-product

How to read common remote sensing products
2
star
10

phenology-pp

Code for primary production phenology
R
2
star
11

dom-optic

A guide presenting the basic optical terminology of dissolved organic matter (DOM)
HTML
2
star
12

ggpmthemes

R
1
star
13

cdoc

Global distribution and transformation of dissolved organic matter along the aquatic continuum: from lakes to oceans
HTML
1
star
14

malina_data_paper

Repository for the data paper of the MALINA oceanographic cruise.
TeX
1
star
15

greenedge-icecamp-data-paper

Data paper for the Green Edge ice camps
TeX
1
star
16

isin

C++
1
star
17

makroalgaeindicators

R
1
star
18

swdchallenge

R
1
star
19

netcolor_phytoplankton

Explore the temporal and spatial distribution of the phytoplankton in Canadian waters.
TeX
1
star
20

sentinel_north_data_visualization_ggplot2_workshop

Data visualization workshop using ggplot2
CSS
1
star
21

l3bin

Support the NASA / GlobColour / CCI ISIN grid used for MODIS L3BIN satellite products.
Rust
1
star