summary_fun | R Documentation |
summary function that applies a function to whole data frame while removing na values
summary_fun(df, fun)
df |
A data frame that is interested to apply a summary function to (eg. mean, standard deviation) |
fun |
a function to apply for the input df |
a data.frame that shows a summary statistic for each column in the original input df, and rounded to one decimal place
summary_fun(mtcars, mean) summary_fun(mtcars, sd) summary_fun(mtcars, max)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.