Transform a function into a valid test function for the table Applying the function on a numerical vector should return one value Applying the function on a factor should return nlevels + 1 value, or one value per factor level
testify(x, f, group)
A vector
The function to try to apply, or a formula combining two functions
Grouping factor
The results for the function applied on the vector, compatible with the format of the result table