bigQueryR (version 0.4.0)

bqr_create_table: Create a Table

Description

Create a Table

Usage

bqr_create_table(projectId = bqr_get_global_project(),
  datasetId = bqr_get_global_dataset(), tableId, template_data,
  timePartitioning = FALSE, expirationMs = 0L)

Arguments

projectId

The BigQuery project ID.

datasetId

A datasetId within projectId.

tableId

Name of table you want.

template_data

A dataframe with the correct types of data

timePartitioning

Whether to create a partioned table

expirationMs

If a partioned table, whether to have an expiration time on the data. The default 0 is no expiration.

Value

TRUE if created, FALSE if not.

Details

Creates a BigQuery table.

If setting timePartioning to TRUE then the table will be a https://cloud.google.com/bigquery/docs/creating-partitioned-tables

See Also

Other bigQuery meta functions: bqr_delete_table, bqr_list_datasets, bqr_list_projects, bqr_list_tables, bqr_table_data, bqr_table_meta