Apply a function to data in pairs (over a facet column).
wrapper_func(data = NULL, func = NULL, xy_grid = NULL, xy_nms = NULL, col = NULL, ...)
| data | data.frame. Data to apply a function over. |
|---|---|
| func | function. Wrapped by |
| xy_grid | data.frame. Output from |
| xy_nms | character (vector). Values to use to create a 'grid' of all combinations of values. |
| col | character. Name of 'id' column in |
| ... | dots. Additional parameters to pass to |
data.frame.
Should be replaced by a purrr function in the future.
Must be careful not to pass NULL in ....