tableSummary | R Documentation |
returns a statistics summary table of the specified data (mean and associated statistical measures)
tableSummary(data, column, removeNA = TRUE, alpha = 0.05)
data |
the data to be used, can be a numeric/character/etc vector or data.frame like (or tibble etc). If it is data.frame or similar the column argument defines which column is to be used |
column |
defines which column is to be used for calculating the statistics. Can be integer or character (column name) |
removeNA |
if TRUE, the NA 'values' in the vector will be removed prior to the calculations. @note this will remove warning messages and errors |
alpha |
specifies the confidence level to be used. @note this value should be between 0 and 1 |
a data.frame with two columns: statistic name and the calculated statistic itself
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.