bigQueryR (version 0.5.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 = NULL,
  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. If NULL an empty table is made.

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 partioned table

If you want more advanced features for the table, create it then call bqr_patch_table with advanced configuration configured from Table

See Also

Other Table meta functions: Table, bqr_copy_table, bqr_delete_table, bqr_list_tables, bqr_patch_table, bqr_table_data, bqr_table_meta