bigrquery (version 0.3.0)

get_table: Retrieve table metadata

Description

get_table returns a table's metadata as a nested list. In addition to a regular error, the condition bigrquery_notFound (which can be handled via tryCatch) is raised if the table could not be found.

exists_table merely checks if a table exists, and returns either TRUE or FALSE.

Usage

get_table(project, dataset, table)

exists_table(project, dataset, table)

Arguments

project

project containing this table

dataset

dataset containing this table

table

name of the table

Value

A table resource list, as described by https://developers.google.com/bigquery/docs/reference/v2/tables

See Also

API documentation: https://developers.google.com/bigquery/docs/reference/v2/tables/get

Other tables: delete_table, list_tables

Examples

Run this code

get_table("publicdata", "samples", "natality")
get_table("githubarchive", "github", "timeline")


Run the code above in your browser using DataLab