7 Google Services
7.1 Google Spreadsheets
THIS CHAPTER IS UNDER CONSTRUCTION / Working with Google Spreadsheets need account authorization.
googlesheets4 is a package to work with Google Sheets from R.
You can read google documents after authentification on google service. There is sample code:
read_sheet("https://docs.google.com/spreadsheets/d/1U6Cf_qEOhiR9AZqTqS3mbMF3zt2db48ZP5v3rkrAEJY/edit#gid=780868077")
gs4_deauth()
Let’s read sample dataset gapminder
. It detailed described in next paragraph.
7.2 Google Search Trends
Google Trends
is a service for analyzing search requests by many filters like region
(continent, country, locality), period
(year, month), information category
(business, education, hobby, healthcare), information type
(news, shopping, video, images) https://trends.google.com/trends/
Let’s configure out google trends query params
date | hits | keyword | geo | time | gprop | category | |
---|---|---|---|---|---|---|---|
<dttm> | <chr> | <chr> | <chr> | <chr> | <chr> | <int> | |
1 | 2021-01-01 | 36 | Bitcoin | AT | 2021-01-01 2021-06-01 | web | 0 |
2 | 2021-01-02 | 67 | Bitcoin | AT | 2021-01-01 2021-06-01 | web | 0 |
3 | 2021-01-03 | 74 | Bitcoin | AT | 2021-01-01 2021-06-01 | web | 0 |
4 | 2021-01-04 | 57 | Bitcoin | AT | 2021-01-01 2021-06-01 | web | 0 |
5 | 2021-01-05 | 53 | Bitcoin | AT | 2021-01-01 2021-06-01 | web | 0 |
6 | 2021-01-06 | 66 | Bitcoin | AT | 2021-01-01 2021-06-01 | web | 0 |
7.3 Набори даних
- https://github.com/kleban/r-book-published/tree/main/datasets/telecom_users.csv
- https://github.com/kleban/r-book-published/tree/main/datasets/telecom_sers.xlsx
- https://github.com/kleban/r-book-published/tree/main/datasets/Default_Fin.csv
- https://github.com/kleban/r-book-published/tree/main/datasets/employes.xml