Learn R Programming

scorecardModelUtils (version 0.0.1.0)

fn_mode: 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.

Examples

Run this code
# NOT RUN {
fn_mode(c(1,2,3,1,4,1,7))
# }

Run the code above in your browser using DataLab