rmg_has_uppercase_within_lowercase: Rule C: internal capitals

Description Usage Arguments Value Examples

View source: R/rmgarbage.R

Description

If a string begins and ends with a lowercase letter, then if the string contains an uppercase letter anywhere in between, then it is removed as garbage.

Usage

1

Arguments

x

a character vector

Value

Logical

Examples

1
2
3
4
5
garbage_string_u1 <- "stratigraphic"
garbage_string_u2 <- "sUatigraphic"

rmg_has_uppercase_within_lowercase(garbage_string_u1) # FALSE
rmg_has_uppercase_within_lowercase(garbage_string_u2) # TRUE

benmarwick/rmgarbage documentation built on April 19, 2020, 6:06 p.m.