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, ...)

Arguments

data

data.frame. Data to apply a function over.

func

function. Wrapped by do.call().

xy_grid

data.frame. Output from create_xy_grid().

xy_nms

character (vector). Values to use to create a 'grid' of all combinations of values.

col

character. Name of 'id' column in data.

...

dots. Additional parameters to pass to func.

Value

data.frame.

Details

Should be replaced by a purrr function in the future. Must be careful not to pass NULL in ....