articlebeforenumber {spatstat.utils}R Documentation

Indefinite Article Preceding A Number

Description

Determines the indefinite article (an or a) which should precede a given number, if the number is read out in English.

Usage

articlebeforenumber(k)

Arguments

k

A single integer.

Details

This function applies the rule that, if the English word for the number k begins with a vowel, then it should be preceded by an, and otherwise by a.

Value

One of the character strings "an" or "a".

Author(s)

Adrian Baddeley Adrian.Baddeley@curtin.edu.au.

See Also

ordinal

Examples

  f <- function(k) cat(paste(articlebeforenumber(k),
                       paste0(k, "-fold"),
                       "increase\n"))
  f(8)
  f(18)
  f(28)

[Package spatstat.utils version 1.13-0 Index]