harmonize | R Documentation |
Convert text to the most occuring case. In case of ties, the first occurence in sorted order will be taken.
harmonize(x)
x |
character vector |
character vector with harmonized names (i.e., same case)
x <- c("FOO", "Foo", "bar", "FOO", "bar", "FOO", "Bar") y <- harmonize(x) stopifnot(all.equal(y, c("FOO", "FOO", "bar", "FOO", "bar", "FOO", "bar")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.