banctable_columns() lists a table's columns, their SeaTable
types and the R types they map to. banctable_add_column() and
banctable_add_columns() extend a table's schema;
banctable_delete_column() removes a column and everything in it.
Usage
banctable_columns(
table,
base = NULL,
workspace_id = "57832",
token_name = "BANCTABLE_TOKEN",
include_key = TRUE
)
banctable_add_column(
table,
column_name,
column_type = "text",
base = NULL,
column_data = NULL,
column_key = NULL,
workspace_id = "57832",
token_name = "BANCTABLE_TOKEN"
)
banctable_add_columns(
table,
columns,
base = NULL,
workspace_id = "57832",
token_name = "BANCTABLE_TOKEN",
progress = TRUE
)
banctable_delete_column(
table,
column_key,
base = NULL,
workspace_id = "57832",
token_name = "BANCTABLE_TOKEN"
)Arguments
- table
Name of the table.
- base
Base name or
Baseobject; discovered fromtablewhenNULL.- workspace_id, token_name
SeaTable connection arguments; see
banc_seatable_connection().- include_key
Whether to include the internal SeaTable column key.
- column_name
Name of the new column.
- column_type
SeaTable column type, e.g.
"text","number","date","checkbox","single-select","multiple-select".- column_data
Optional list of type-specific settings, e.g. the options of a select column.
- column_key
For
banctable_add_column(), the key of an existing column to insert after. Forbanctable_delete_column(), the key of the column to delete, frombanctable_columns(include_key = TRUE).- columns
A data frame with
nameandtypecolumns. Columns that already exist are skipped.- progress
Whether to report each column as it is added.
