Skip to contents

Changed version of mclust::majorityVote. Ties are broken randomly.

Usage

get_majority(x)

Arguments

x

a vector

Value

A single element of x that has the highest count.