modeFactor | R Documentation |
This function computes the modal value, i.e. the value that appears most often, from a factor vector.
modeFactor(v)
v |
Factor. The input vector. |
The modal value as character
.
Tim Appelhans
## sample data (flights departing from Houston airports)
library(hflights)
data(hflights)
## most common flight number
modeFactor(hflights$FlightNum)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.