| table_exists | R Documentation |
Check if the table or view with the specified name exists in the specified database. This can either be a temporary view or a table/view.
table_exists(sc, table, database = NULL)
sc |
A |
table |
|
database |
|
If database is NULL, table_exists refers to a table in the current
database (see current_database()).
A logical(1) vector indicating TRUE if the table exists within the
specified database and FALSE otherwise.
cache_table(), create_table(), get_table(), list_tables(),
refresh_table(), uncache_table()
## Not run: sc <- sparklyr::spark_connect(master = "local") mtcars_spark <- sparklyr::copy_to(dest = sc, df = mtcars) table_exists(sc = sc, table = "mtcars") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.