ddply_helper: Apply a function to each column of a data.frame
Description
Thin wrapper around lapply() that checks that the input is a table before
applying the function to each column, and converts the result back to a table
afterwards. If the tibble package is available and the input is a tibble,
the result will be a tibble; otherwise, it will be a plain data.frame.
Usage
ddply_helper(d, fun)
Value
A data.frame or tibble with the function applied to each column.