Description Usage Arguments Value Examples
concatenate consonance tests into a consonance suite
1 2 | ## S3 method for class 'consonance'
e1 + e2
|
e1 |
consonance_suite or consonance_test |
e2 |
consonance_suite or consonance_test |
a suite of consonance tests
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # declare two consonance tests for a hypothetical
# data frame with columns "x" and "y"
test_x <- consonance_test("x numeric", is.numeric, .var="x")
test_y <- consonance_test("y numeric", is.numeric, .var="y")
# create a suite by adding two tests to an empty suite
suite_2 <- consonance_suite() + test_x + test_y
# create a suite by adding two tests together
# (tests automatically grouped into a suite)
suite_2 <- test_x + test_y
# create a large suite by concatenating two suite together
suite_4 <- suite_2 + suite_2
length(suite_4$tests)
# (note that + really means concatentation and tests can be redundant)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.