bundle_case: Assign most common-case variants of case-insensitive clusters...

Description Usage Arguments Value Author(s) Examples

View source: R/bundle_case.R

Description

Where names/entities/themes/tags/etc are referenced with multiple variations of upper/lower/title/mixed case, it is often desirable to group these case-insensitively for analysis. This function does so while preserving the most common case for prettier reading and to avoid the need for subsequent look-ups.

Usage

1

Arguments

x

A character vector

Value

A character vector of same length as input, with case variants changed to the mode

Author(s)

Robin Edwards

Examples

1
bundle_case(c('london','London','London','Paris','PARIS','paris','Paris'))

geotheory/textools documentation built on Aug. 17, 2021, 1:18 p.m.