powered by
data.frame
scaled_mean() calculates scaled row means for a dataframe.
scaled_mean()
scaled_mean(.x, method = c("r", "c"))
a numeric vector
a data.frame
The method source: both the pure R and C++ versions are efficient
library(dplyr) iris %>% select_if(is.numeric) %>% scaled_mean()
Run the code above in your browser using DataLab