Functions that apply expressions to input data objects and return data frames.
dapc: Apply function to columns of a data frame.
dapr: Apply function to rows of a data frame.
dapc_if: Apply function to certain columns of a data frame.
dapr_if: Apply function to certain rows of a data frame.
dapc(.data, .f, ...) dapr(.data, .f, ...) dapc_if(.data, .predicate, .f, ...) dapr_if(.data, .predicate, .f, ...)
.data | Data frame input. |
---|---|
.f | Function to apply to element (columns or rows). This can be written
as a single function name e.g., |
... | Other values passed to function call. |
.predicate | Logical vector or expression evaluating to a logical vector.
If not a logical vector, this can be written as a single function name
e.g., The resulting logical vector is used to determine which elements (rows or columns) to iterate over with the .f function/expression. |
A data frame