Summarize a variable through a single numeric summary, such as the mean standard deviation, and sum.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | sm_mean(x, name = NULL)
sm_median(x, name = NULL)
sm_sd(x, name = NULL)
sm_sum(x, name = NULL)
sm_min(x, name = NULL)
sm_max(x, name = NULL)
sm_cor(x, y, name = NULL)
sm_cov(x, y, name = NULL)
sm_var(x, y, name = NULL)
sm_na_count(x, name = NULL)
sm_count(x, name = NULL)
sm_paste(x, name = NULL, sep = "; ")
|
x |
the variable to summarize. Will be used deparsed to infer the names of of the summaries. |
name |
provide a prefix variable name for the output. Set to
|
y |
secomd variable to summarize, for correlation, covariance, and variance. |
sep |
string to use to collapse text values with 'sm_paste' |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.