tolower2: Make a string lower case except for stated (and common NOAA)...

View source: R/NMFSReports.R

tolower2R Documentation

Make a string lower case except for stated (and common NOAA) proper nouns.

Description

Make a string lower case except for stated (and common NOAA) proper nouns.

Usage

tolower2(str0, capitalizefirst = FALSE, add_cap = "")

Arguments

str0

The text string.

capitalizefirst

Default = FALSE

add_cap

A vector of strings that the user does not want capitalized

Examples

tolower2(str0 = "notice how there are built-in proper nouns are capitalized:
alaska is not in the south atlantic.",
         capitalizefirst = TRUE,
         add_cap = "Proper nouns")

EmilyMarkowitz-NOAA/NMFSReports documentation built on March 26, 2023, 1:08 a.m.