View source: R/readSQLDataModel.R
read_SQL_data_model | R Documentation |
Read a data model from an SQL file from the MySQL Workbench
read_SQL_data_model(f, typeRef = "MySQLWB", mysqlcomments = TRUE)
readSQLDataModel(...)
f |
the SQL file to read |
typeRef |
the reference for type conversion
(Default: "MySQLWB"; see |
mysqlcomments |
if MySQL comments (starting with #) should be removed (Default: TRUE) |
... |
params for |
Database, table and field names should be surrounded by "'".
A RelDataModel object
readSQLDataModel()
: Deprecated version of read_SQL_data_model
## Read the model ----
hpo_from_sql <- read_SQL_data_model(
system.file("examples/HPO-model.sql", package="ReDaMoR")
)
## Confront to data ----
confrontation_report <- confront_data(
hpo_from_sql,
path=list.files(
system.file("examples/HPO-subset", package="ReDaMoR"),
full.names=TRUE
),
returnData=TRUE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.