We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
assert_rows :: data.frame df => df -> (df -> [a]) -> (a -> Bool) -> df
assert_rows(a, b, c, ...) a = data frame b = function that takes data frame and returns nrow vector c = predicate ... optional "select" rows
map the predicate c over return value from b(a) [map(c), b(a))]
example:
iris %>% assert_rows(cosine_dist, within_bounds(0,.5), -Species) %>% ...
the error message will read like.... Error: Assertion 'within_bounds' violated at row 4 of iris (value: 32.4)
The text was updated successfully, but these errors were encountered:
implemented #10 and #11. 2 row-redux fn, *_rows
487865b
No branches or pull requests
assert_rows :: data.frame df => df -> (df -> [a]) -> (a -> Bool) -> df
assert_rows(a, b, c, ...)
a = data frame
b = function that takes data frame and returns nrow vector
c = predicate
... optional "select" rows
map the predicate c over return value from b(a)
[map(c), b(a))]
example:
the error message will read like....
Error: Assertion 'within_bounds' violated at row 4 of iris (value: 32.4)
The text was updated successfully, but these errors were encountered: