centralValue: centralValue

Description Usage Arguments Details Value Author(s) Examples

View source: R/pguDMwR.R

Description

Returns the central value of a variable.

Usage

1
centralValue(x, ws = NULL)

Arguments

x

variable

ws

weights

Details

Function that obtains a statistic of centrality of a variable, given a sample of values. If the variable is numeric it returns de median, if it is a factor it returns the mode. In other cases it tries to convert to a factor and then returns the mode. Taken from: https://github.com/ltorgo/DMwR2/

Value

central value

Author(s)

Luis Torgo

Examples

1
centralValue(x = seq(1,10,1))

pguIMP documentation built on Sept. 30, 2021, 5:08 p.m.