powered by
Checks if equal set using
setequal(x, values)
chk_setequal(x, values, x_name = NULL)vld_setequal(x, values)
vld_setequal(x, values)
The object to check.
A vector of the permitted values.
A string of the name of object x or NULL.
The chk_ function throws an informative error if the test fails.
chk_
The vld_ function returns a flag indicating whether the test was met.
vld_
vld_setequal: Validate Set Equal
vld_setequal
Other chk_set: chk_join(), chk_subset(), chk_superset()
chk_join()
chk_subset()
chk_superset()
# NOT RUN { # chk_setequal chk_setequal(1:2, 2:1) try(chk_setequal(1, 1:2)) # vld_setequal vld_setequal(1, 1) vld_setequal(1:2, 2:1) vld_setequal(1, 2:1) vld_setequal(1:2, 2) # }
Run the code above in your browser using DataLab