scaled_mean | R Documentation |
data.frame
scaled_mean()
calculates scaled row means for a dataframe.
scaled_mean(.x, method = c("r", "c"))
.x |
a |
method |
The method source: both the pure R and C++ versions are efficient |
a numeric vector
library(dplyr)
iris %>%
select_if(is.numeric) %>%
scaled_mean()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.