scaled_mean: Average and scale rows in a 'data.frame'

View source: R/reducers.R

scaled_meanR Documentation

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

library(dplyr)
iris %>%
  select_if(is.numeric) %>%
  scaled_mean()


USCbiostats/partition documentation built on Feb. 3, 2024, 3:38 a.m.