CapWords: Capitalize Words

View source: R/basic_functions.R

CapWordsR Documentation

Capitalize Words

Description

capitalize the first letter in each words in a string

Usage

CapWords(s, strict = FALSE)

Arguments

s

string

strict

logical, indicating whether or not string it set to title case , Default: FALSE

Value

returns capitalized string

Examples

 CapWords("example eXAMPLE", FALSE)
 # [1] "Example EXAMPLE"
 CapWords("example eXAMPLE", TRUE)
 # [1] "Example Example"

bfw documentation built on March 18, 2022, 6:19 p.m.