| biogeme_database_remove | R Documentation |
Remove observations satisfying a Biogeme logical expression
biogeme_database_remove(database, condition)
database_remove(database, condition)
remove_observations(database, condition)
database |
A |
condition |
Logical Biogeme expression; matching rows are removed. |
condition is a symbolic indicator. Rows for which it is true are removed
when the database is materialized by native Biogeme.
A new database specification.
database <- biogeme_database(
"demo",
data.frame(choice = c(1, 2, 1), income = c(10, 20, 30))
)
filtered <- biogeme_database_remove(database, variable("income") > 10)
biogeme_database_nrow(filtered)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.