ch.capwords: Capitalize first letter Function

ch.capwordsR Documentation

Capitalize first letter Function

Description

This function capitalizes the first letter of each word in a string of words.

Usage

ch.capwords(s, strict = FALSE)

Arguments

s

a string of words.

strict

a switch, if true, it ensures that only the first letter of each word is capitalized. Otherwise all remaining letters keep their default capitalization. DEFAULT=FALSE.

Value

a string of words with the first letter capitalized

Examples

ch.capwords ("hello world")

ccpluncw/ccpl_R_chutils documentation built on Feb. 28, 2024, 1:17 a.m.