Check rowwise for the provided data.frame columns if a value is trailing.
Examples
df <- data.frame(a = c(1, 2, 3), b = c(2, 3, 2), c = c(3, 3, 3))
df
#> a b c
#> 1 1 2 3
#> 2 2 3 3
#> 3 3 2 3
# check over all columns rowwise for trailing 3s
check_trailing_rowwise(df, cols = colnames(df), trail_value = 3)
#> [1] TRUE TRUE FALSE