opalr (version 1.5.2)

opal.table_truncate: Truncate a Opal table

Description

Removes the values of a table and keep the dictionary untouched. Fails if the table does not exist or is a view. See also opal.table_delete.

Usage

opal.table_truncate(opal, project, table)

Arguments

opal

Opal connection object.

project

Project name where the table is located.

table

Table name to be truncated.

Examples

Run this code
# NOT RUN {
o <- opal.login('administrator','password', url='https://opal-demo.obiba.org')
opal.table_truncate(o, "CNSIM", "CNSIM1")
opal.logout(o)
# }

Run the code above in your browser using DataLab