Description Usage Arguments Value Examples
calc_cmean() is a function that calculates sample means (plus standard errors and confidence intervals) by group.
1 | calc_cmean(DT, y, x, se = F)
|
DT |
a data.table |
y |
a character vector of column names of data to calculate the group mean of |
x |
a character vector of columns in data to group by |
se |
logical, if TRUE output will calculate standard error and confidence intervals of mean alng with number of observations of conditional sample mean |
The data.frame/data.table of conditional sample means
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.