Skip to contents

Creates the canonical representation of a candidate value range.

Values may be supplied as a character vector or as one or more pipe-delimited character strings. Whitespace surrounding values is removed.

Usage

candidate_range(...)

Arguments

...

Character values defining the candidate range.

Value

A single pipe-delimited character string. If no values are supplied, NA_character_ is returned.

Examples

candidate_range("depicts", "documents")
#> [1] "depicts|documents"
candidate_range(c("depicts", "documents"))
#> [1] "depicts|documents"
candidate_range("depicts|documents")
#> [1] "depicts|documents"
candidate_range("depicts | documents")
#> [1] "depicts|documents"