View source: R/subtract_parts_from_whole.R
subtract_parts_from_whole | R Documentation |
Computes a remainder values from measures of some subgroups and one all-group
subtract_parts_from_whole(
.data_frame,
grouping_column,
value_column,
whole_name,
part_names,
remainder_name
)
.data_frame |
<dataframe> the input data |
grouping_column |
<chr> the name of the column that defines the grouping |
value_column |
<chr> the name of the column that holds the values |
whole_name |
<chr> the level of the grouping that signifies the total |
part_names |
<chr[]> the other levels of the grouping |
remainder_name |
<chr> the new name for the difference between whole and parts |
a new data frame with the same number of columns but extra rows and a new group level
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.