• Stars
    star
    355
  • Rank 119,764 (Top 3 %)
  • Language
    R
  • Created about 9 years ago
  • Updated 4 months 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

eemR

Utilities for pre-processing emission-excitation-matrix (EEM).
R
19
star
2

paletteer_gallery

A list of color palettes provided by the paletteer R package
HTML
19
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
11
star
4

tidytuesday

HTML
10
star
5

dataviz

R
6
star
6

ivado_ggplot2_workshop_2022

ggplot2 workshop presented at the 2022 IVADO data.trek event
JavaScript
4
star
7

stats-denmark-2019

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

duckfetch

A duckdb CLI installer
Rust
2
star
9

cdoc

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

blog

My personal website
TeX
2
star
11

read-rs-product

How to read common remote sensing products
2
star
12

phenology-pp

Code for primary production phenology
R
2
star
13

dom-optic

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

linux-mint-dev-environment

Notes for myself for setting up my Linux Mint environment.
HTML
1
star
15

ggpmthemes

R
1
star
16

malina_data_paper

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

greenedge-icecamp-data-paper

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

isin

C++
1
star
19

makroalgaeindicators

R
1
star
20

swdchallenge

R
1
star
21

netcolor_phytoplankton

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

sentinel_north_data_visualization_ggplot2_workshop

Data visualization workshop using ggplot2
CSS
1
star
23

l3bin

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