Description Usage Arguments Examples
Calculate the rowwise mean for columns selected in data.frame
1 | add_row_means(.data, ..., .name = "row_mean", na.rm = TRUE)
|
.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_means(starts_with("Sepal"), .name = "Sepal.Mean")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.