Description Usage Arguments Examples
Calculate the rowwise sum for columns selected in data.frame
1 | add_row_sums(.data, ..., .name = "row_sum", na.rm = FALSE)
|
.data |
data.frame |
... |
columns selected for rowwise 'sum' or 'mean' using 'tidyselect' grammar |
.name |
the name of new column |
na.rm |
whether to delete the missing value, 'TRUE' or 'FALSE' |
1 2 | iris %>%
add_row_sums(starts_with("Sepal"), .name = "Sepal.sum")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.