powered by
Constraint: only observed column combinations are valid
fixed_combinations_constraint(columns, reference_data)
An rsdv_constraint object.
rsdv_constraint
Character vector of column names.
Data frame containing the allowed combinations.
ref <- data.frame(city = c("NY", "LA"), state = c("NY", "CA"), stringsAsFactors = FALSE) fixed_combinations_constraint(c("city", "state"), ref)
Run the code above in your browser using DataLab