powered by
Check a single constraint against each row of a data frame
check_constraint(data, constraint)
Logical vector of length nrow(data).
nrow(data)
A data frame.
An rsdv_constraint object.
rsdv_constraint
df <- data.frame(a = c(1, 2, 3), b = c(1, 2, 9)) check_constraint(df, equality_constraint("a", "b"))
Run the code above in your browser using DataLab