fn_mode {scorecardModelUtils}R Documentation

Calculating mode value of a vector

Description

The function returns the mode of a vector. The vector can be of any datatype ie. numerical or categorical.

Usage

fn_mode(x)

Arguments

x

a vector of string or number

Value

The function returns the mode value of the input vector.

Author(s)

Arya Poddar <aryapoddar290990@gmail.com>

Examples

fn_mode(c(1,2,3,1,4,1,7))

[Package scorecardModelUtils version 0.0.1.0 Index]