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.
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"
