CapWords: Capitalize Words

Description Usage Arguments Value Examples

View source: R/basic_functions.R

Description

capitalize the first letter in each words in a string

Usage

1
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

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

bfw documentation built on Jan. 11, 2020, 9:29 a.m.