CapWords: Capitalize Words

Description Usage Arguments Value Examples

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 May 2, 2019, 6:51 a.m.