Learn R Programming

ReDaMoR (version 0.8.2)

remove_field: Remove a field from a table in a RelDataModel

Description

Remove a field from a table in a RelDataModel

Usage

remove_field(x, tableName, fieldName, rmForeignKeys = FALSE)

Value

A RelDataModel

Arguments

x

a RelDataModel

tableName

the name of the table to modify (a single character)

fieldName

the name of the field to remove (a single character)

rmForeignKeys

a single logical indicating if the corresponding foreign keys should be removed. If FALSE (default), the function will throw an error if it encounter a foreign key using the field.