calc_row_representativeness: Calculate row-wise representativeness

calc_row_representativenessR Documentation

Calculate row-wise representativeness

Description

Calculate row-wise representativeness

Usage

calc_row_representativeness(
  x,
  central_tendency_fun = median,
  central_tendencies = NULL,
  standardize = T,
  absolute = T
)

Arguments

x

Data frame of numerical data

central_tendency_fun

Function to use for central tendency

central_tendencies

If custom values for central tendency, input here

standardize

Whether to standardize values to ensure common metric. If not done, variables with larger SDs will be given more influence.

absolute

Whether to use absolute errors (if not, then there is also an attempt to ensure the error directions are balanced across variables)

Value

A data frame of error values and their mean and medians

Examples

calc_row_representativeness(iris)

Deleetdk/kirkegaard documentation built on April 27, 2024, 3:26 p.m.