adapt_reference: Adapt glue reference

View source: R/miscellaneous.R

adapt_referenceR Documentation

Adapt glue reference

Description

Switch between plural or singular reference.

Usage

adapt_reference(input, sg, pl = NULL, zero = "")

Arguments

input

Vector to be checked.

sg

Character value to return if length of input is 1.

pl

Character value to return if length of input is > 1. If set to NULL an 's' is attached to in put of sg.

zero

Character value to treturn if lengt of input is 0.

Value

Either sg or pl.


kueckelj/confuns documentation built on July 4, 2024, 4:53 p.m.