| copy_table {bigrquery} | R Documentation |
Each source table and the destination table should be table references, that
is, lists with exactly three entries: project_id, dataset_id,
and table_id.
copy_table(src, dest, create_disposition = "CREATE_IF_NEEDED", write_disposition = "WRITE_EMPTY", project = NULL, ...)
src |
either a single table reference, or a list of table references |
dest |
destination table |
create_disposition |
behavior for table creation if the destination
already exists. defaults to |
write_disposition |
behavior for writing data if the destination already
exists. defaults to |
project |
project ID to use for the copy job. defaults to the project of the destination table. |
... |
Additional arguments merged into the body of the
request. |
API documentation: https://cloud.google.com/bigquery/docs/tables#copyingtable
## Not run: src <- list(project_id = "publicdata", dataset_id = "samples", table_id = "shakespeare") dest <- list(project_id = "myproject", dataset_id = "mydata", table_id = "shakespeare") doubled <- dest doubled$table_id <- "double_shakespeare" copy_table(src, dest) copy_table(list(src, dest), doubled) ## End(Not run)