statify | R Documentation |
Transform a function into a valid stat function for the table
statify(x, f)
x |
A vector |
f |
The function to try to apply, or a formula combining two functions |
NA values are removed from the data
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
See parse_formula
for the usage for formulaes.
The results for the function applied on the vector, compatible with the format of the result table
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.