describe can be used to specify which variables should be described how.

describe_if allows to to specify variables by using predicates as in select_if.

describe(dscr, with, append = FALSE, ...)

describe_if(dscr, .predicate, with, ...)

Arguments

with

list of descriptors to be used with the selected variables.

...

one or more unquoted expressions separated by commas passed to dplyr's select. All descriptors specified in with are used for the selected variables. Currently not used for describe_if.

.predicate

A predicate function passed to select_if.

descr

describr object; the specified descriptors will be added for the selected variables in dscr.

APPEND

[=FALSE] flag indicating whether previously defined descriptors should be overwritten.

Value

An object of class describr where the defined descriptors are added to the specified variables.