Learn R Programming

partition (version 0.1.0)

scaled_mean: Average and scale rows in a data.frame

Description

scaled_mean() calculates scaled row means for a dataframe.

Usage

scaled_mean(.x, method = c("r", "c"))

Arguments

.x

a data.frame

method

The method source: both the pure R and C++ versions are efficient

Value

a numeric vector

Examples

Run this code
# NOT RUN {
library(dplyr)
iris %>%
  select_if(is.numeric) %>%
  scaled_mean()

# }

Run the code above in your browser using DataLab