# denominator: Convert numbers to denominator character vectors (whole,... In rossellhayes/nombre: Number Names

 denominator R Documentation

## Convert numbers to denominator character vectors (whole, half, third)

### Description

Convert numbers to denominator character vectors (whole, half, third)

### Usage

```denominator(x, numerator = 1, quarter = TRUE, ...)

nom_denom(x, numerator = 1, quarter = TRUE, ...)
```

### Arguments

 `x` A numeric vector `numerator` A numeric vector. The numerator(s) associated with the denominator(s). When `numerator` is not `1` or `-1`, the denominator will be pluralized. `quarter` A logical of length one. If `TRUE`, the denominator of `4` will be "quarter(s)". If `FALSE`, the denominator of `4` will be "fourth(s)". Defaults to `TRUE`. `...` Additional arguments passed to `ordinal()`

### Value

A character vector of the same length as `x`

Other number names: `adverbial()`, `cardinal()`, `collective()`, `numerator()`, `ordinal()`, `ratio()`

### Examples

```nom_denom(2)
nom_denom(1:10)
nom_denom(1:10, numerator = 2)
nom_denom(1:10, numerator = 1:10)

nom_denom(4)
nom_denom(4, quarter = FALSE)

nom_denom(1:10, numerator = 2, cardinal = FALSE)
nom_denom(5:15, numerator = 2, max_n = 10)
```

rossellhayes/nombre documentation built on June 2, 2022, 10:22 a.m.