Description Usage Arguments Value
Add a rowwise mean or sum index of specific variables to the dataset.
1 |
data |
A (tidy) dataset. |
name |
Name of the index column to compute. |
... |
Variables used for the index. |
type |
Type of index to compute. Either "mean" (default) or "sum". |
na.rm |
a logical value indicating whether NA values should be stripped before the computation proceeds. Defaults to TRUE. |
A tibble of the original datset with the added index column.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.