View source: R/importRDBESDataDFS.R
importRDBESDataDFS | R Documentation |
This function converts a list of data frames into an object of class
RDBESDataObject
.
importRDBESDataDFS(
myList,
castToCorrectDataTypes = TRUE,
verbose = FALSE,
strict = TRUE,
addMissingColumns = FALSE,
...
)
myList |
A |
castToCorrectDataTypes |
logical. Indicates whether to cast the columns
to the correct data types. Default is |
verbose |
(Optional) Set to TRUE if you want informative text printed out, or FALSE if you don't. The default is FALSE. |
strict |
logical. Indicates level of validation of the |
addMissingColumns |
logical. Indicates whether to add missing columns |
Tables in the input list should have the correct 2-letter RDBES name
(e.g. "DE", "LE", etc.). The function converts all data frames to
data.table
. NULL
tables are left as NULL
.
If castToCorrectDataTypes = TRUE
, it ensures all columns are of the
correct data type using setRDBESDataObjectDataTypes
.
Column names are replaced with the RDBES 'R names' from the model documentation.
The function then sets a key on each table using the 'XXid' column as the
key, where 'XX' is the name of that table. It also replaces all empty
strings with NA
.
It then uses the newRDBESDataObject
function to create a new
RDBESDataObject
from the input.
Finally, it validates the RDBESDataObject using
RDBEScore::validateRDBESDataObject
and returns it.
An RDBESDataObject
with each element being a data table.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.