Skip to contents

All functions

assert()
Raises error if predicate is FALSE in any columns selected
assert_rows()
Raises error if predicate is FALSE for any row after applying row reduction function
assertr assertr-package
assertr: Assertive programming for R analysis pipeline.
chain_start() chain_end()
Chaining functions
col_concat()
Concatenate all columns of each row in data frame into a string
duplicates_across_cols()
Checks if row contains at least one value duplicated in its column
generate_id()
Generates random ID string
has_all_names()
Returns TRUE if data.frame or list has specified names
has_class()
Returns TRUE if data.frame columns have a specified class
has_only_names()
Returns TRUE if data.frame or list has only the specified names
in_set()
Returns TRUE if value in set
insist()
Raises error if dynamically created predicate is FALSE in any columns selected
insist_rows()
Raises error if dynamically created predicate is FALSE for any row after applying row reduction function
is_uniq()
Returns TRUE where no elements appear more than once
maha_dist()
Computes mahalanobis distance for each row of data frame
not_na()
Returns TRUE if value is not NA
num_row_NAs()
Counts number of NAs in each row
print(<assertr_assert_error>)
Printing assertr's assert errors
print(<assertr_defect>)
Printing assertr's defect
print(<assertr_success>)
Printing assertr's success
print(<assertr_verify_error>)
Printing assertr's verify errors
success_logical() success_continue() success_append() success_report() success_df_return() error_stop() just_warn() error_report() warn_report() error_append() warning_append() error_return() error_df_return() error_logical() defect_append() defect_report() defect_df_return()
Success and error functions
summary(<assertr_assert_error>)
Summarizing assertr's assert errors
summary(<assertr_verify_error>)
Summarizing assertr's verify errors
verify()
Raises error if expression is FALSE anywhere
within_bounds()
Creates bounds checking predicate
within_n_mads()
Return a function to create robust z-score checking predicate
within_n_sds()
Return a function to create z-score checking predicate