row_function | R Documentation |
This can be used to e.g. add a maximum of certain rows.
row_function(fn, ..., data = NULL)
fn |
function to apply, such as |
... |
tidyverse selector helpers, passed on to |
data |
data set, will be determined with |
if (require("dplyr")) {
iris |>
mutate(max = row_function(max, where(is.numeric)),
sepal_mean = row_function(mean, starts_with("Sepal"))) |>
head()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.