plus-.consonance: concatenate consonance tests into a consonance suite

Description Usage Arguments Value Examples

Description

concatenate consonance tests into a consonance suite

Usage

1
2
## S3 method for class 'consonance'
e1 + e2

Arguments

e1

consonance_suite or consonance_test

e2

consonance_suite or consonance_test

Value

a suite of consonance tests

Examples

 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)

tkonopka/consonance documentation built on Oct. 9, 2020, 2:09 p.m.