Description Usage Arguments Value Examples

Get mean and standard deviation of variables by group

1 | ```
make_mean_std_dev_by_group_table(data, group_column, columns, total_row = TRUE)
``` |

`data` |
A data.frame with the data you want to make the table from. |

`group_column` |
A string with the name of the variable you are grouping by |

`columns` |
A string or vector of strings for the variables you want to get the mean and standard deviation for. |

`total_row` |
A boolean (default TRUE) for whether to include a row a the bottom for the overall mean and standard deviation (i.e. not by group). |

A data.frame with the first column showing the category grouped by. Then one column for each variable you want the mean and standard deviation for. Will give the mean and standard deviation as a single string with the standard deviation in parentheses.

1 | ```
make_mean_std_dev_by_group_table(mtcars, "gear", c("mpg", "disp"))
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.