Skip to Content
Learning Google BigQuery
book

Learning Google BigQuery

by Thirukkumaran Haridass, Eric Brown
December 2017
Beginner to intermediate
264 pages
5h 38m
English
Packt Publishing
Content preview from Learning Google BigQuery

Getting started

The following section shows how to connect to BigQuery from R programming language and create visuals using that data:

  1. Open RStudio and click on the Run button to run the following script in the console or source pane to install bigrquery and ggplot2:
install.packages("bigrquery")install.packages("ggplot2")
  1. Run the next script in the console to query your Google BigQuery Table:
library("bigrquery")project <- "Enter your project ID Here"query <- "SELECT trafficsource.medium as Medium,COUNT(visitId) as VisitsFROM `google.com:analytics-bigquery.LondonCycleHelmet.ga_sessions_20130910`GROUP BY Medium"result <- query_exec(query, project, use_legacy_sql = FALSE)
  1. The bigrquery package works with the API for authentication. Once ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Google BigQuery: The Definitive Guide

Google BigQuery: The Definitive Guide

Valliappa Lakshmanan, Jordan Tigani
Google BigQuery Analytics

Google BigQuery Analytics

Siddartha Naidu, Jordan Tigani

Publisher Resources

ISBN: 9781787288591Supplemental Content