View source: R/RelTableModel.R
RelTableModel | R Documentation |
Create a RelTableModel object
RelTableModel(
l = NULL,
tableName,
fields,
primaryKey = NULL,
foreignKeys = NULL,
indexes = NULL,
display = list(x = as.numeric(NA), y = as.numeric(NA), color = as.character(NA),
comment = as.character(NA))
)
l |
DEPRECATED. A named list with the function parameters.
If |
tableName |
a character vector of length one |
fields |
a tibble with the following columns:
|
primaryKey |
a character vector of any length. All values should be in fields$name |
foreignKeys |
a list of foreign keys. Each foreign key is defined as a list with the following elements:
|
indexes |
a list of indexes. Each index is defined by 3 columns:
|
display |
a list gathering:
|
When defining a matrix, 3 and only 3 fields must be defined: 2 of types 'row' and 'column' and the 3rd of your choice. In this case primaryKey is defined automatically as the combination of row and column.
A RelTableModel object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.