4
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

RでBigQueryに接続する(bigrquery)

Posted at

パッケージをインストール・読み込み

install.packages("bigrquery")
library(bigrquery)

バージョンによって関数が使えたり使えなかったりして困った

r-version 3.3.3

project <-'プロジェクト名'
sql <- "SELECT * FROM データセット名.テーブル名 "
data <- query_exec(sql, project = project, useLegacySql = FALSE)

r-version 3.6.1

sql <- 'SELECT * FROM データセット名.テーブル名'
tb <- bq_project_query('プロジェクト名', sql)
customer_repeater_restaurants <- bq_table_download(tb)
4
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?