Table : delete_column
Table_DeleteColumn.RdMark a column for deletion. Note that this does not delete the column from
Synapse. You must call the synStore() function on this Table instance to
delete the column from Synapse. This is a convenience function to eliminate
the need to manually delete the column from the named list and add it to the
$_columns_to_delete attribute.
Examples
if (FALSE) { # \dontrun{
## Deleting a column
# This example shows how you may delete a column from a table and then store
# the change back in Synapse.
library(synapser)
synLogin()
table = Table(id = "syn1234") |> synGet(table_options = TableOptions(include_columns = TRUE))
table |> synDeleteColumn(name = "my_column")
table |> synStore()
} # }