Learn R Programming

prettyR (version 1.1-3)

Mode: Find the modal value

Description

Finds the modal value of an object (usually a factor).

Usage

Mode(x,na.rm)

Arguments

x
An object, usually a factor.
na.rm
A dummy argument to make it compatible with calls to mean, etc.

Value

  • The modal value of the object as character.

Details

Mode finds the modal value of the object. If there are multiple modal values, it returns an appropriate message.

See Also

describe