computeMode {BBmisc} | R Documentation |

## Compute statistical mode of a vector (value that occurs most frequently).

### Description

Works for integer, numeric, factor and character vectors. The implementation is currently not extremely efficient.

### Usage

```
computeMode(x, ties.method = "random", na.rm = TRUE)
```

### Arguments

`x` |
[ |

`ties.method` |
[ |

`na.rm` |
[ |

### Value

Modal value of length 1, data type depends on data type of `x`

.

### Examples

```
computeMode(c(1,2,3,3))
```

[Package

*BBmisc*version 1.13 Index]