Skip to contents

[Experimental]

Check whether x is a list of summary functions.

Usage

assert_summary_funs(x, null.ok = FALSE)

Arguments

x

an object to check.

null.ok

(flag)
whether x may also contain NULL, meaning that a user choice is possible where no summary function should be applied.

See also

assertions for more details.

Examples

assert_summary_funs(list(mean = colMeans, raw = NULL), null.ok = TRUE)