Learn R Programming

tmcn (version 0.2-13)

strcap: Mixed case capitalizing.

Description

To capitalize every first letter of a word.

Usage

strcap(string, strict = FALSE)

Arguments

string

A character vector.

strict

Whether strict.

Value

A character vector with the first letter of each word capitalized.

Examples

Run this code
# NOT RUN {
strcap("the quick red fox jumps over the lazy brown dog")

# }

Run the code above in your browser using DataLab