Learn R Programming

lessR (version 3.4.6)

xU: Text Processing: Capitalize First Letter of a Word

Description

Capitalize the first letter of a word. Primarily for internal use in text processing of knitr output. Not usually referenced by the user.

Usage

xU(x)

Arguments

x
The character string (word) for which to capitalize the first letter.

Details

Input is a single word. Output is the word with its first letter capitalized.

Examples

Run this code
xU("the")

Run the code above in your browser using DataLab