Pull a BigQuery table (or filtered slice) into a data.frame
Source:R/ingest_bigquery.R
morie_ingest_bigquery_table.RdConvenience wrapper around
morie_ingest_bigquery_build_sql +
morie_ingest_bigquery_query: builds a validated,
backtick-quoted SELECT against a fully-qualified table and
downloads the result.
Usage
morie_ingest_bigquery_table(
project,
dataset,
table,
where = NULL,
limit = NULL,
select = "*",
billing_project = NULL,
page_size = 10000L,
max_rows = Inf,
quiet = TRUE
)Arguments
- project, dataset, table
Fully-qualified BigQuery table reference, e.g.
project = "bigquery-public-data",dataset = "chicago_crime",table = "crime".- where
Optional raw SQL
WHEREclause.- limit
Optional
LIMIT.- select
Projection list (default
"*").- billing_project
Billing project; falls back to
GCP_PROJECT, then ADC.- page_size
Rows per download page.
- max_rows
Optional cap on rows downloaded.
- quiet
Suppress bigrquery progress output.
Examples
if (FALSE) { # \dontrun{
# Requires the 'bigrquery' package, ADC, and a billing project.
df <- morie_ingest_bigquery_table(
project = "bigquery-public-data",
dataset = "chicago_crime",
table = "crime",
where = "year = 2024",
limit = 10000L,
billing_project = "my-billing-project"
)
head(df)
} # }