| biogeme_database | R Documentation |
The database remains an R object until a model is compiled. Data are copied and validated at construction time, so later modifications to the original data frame do not alter the model database.
biogeme_database(name, data)
name |
Database name. |
data |
Numeric R data frame. |
The input must contain only numeric, named, non-empty columns. The original row identifiers are retained separately from the data columns and are carried through native filtering and row-extraction operations.
An object of class biogeme_database.
database <- biogeme_database(
"demo",
data.frame(choice = c(1, 2), income = c(10, 20))
)
biogeme_database_columns(database)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.