apply_row() is a wrapper around apply() and select(), applying a function rowwise, and selecting variables with dplyr::select() syntax. This makes code slightly less verbose for rowwise operations.

apply_row(x, select_helpers = everything(), FUN, ...)

Arguments

x

Data frame or tibble to pass through.

select_helpers

Select variables using dplyr::select() syntax

FUN

Function to be applied to selected columns

...

Additional arguments to the function.

Examples