simple_cap: simple_cap

Description Usage Arguments Details Value Note See Also Examples

View source: R/simple_cap.R

Description

Capitalizes the first letter of each word in a string.

Usage

1

Arguments

x

A text string containing one or more words.

Details

This function is used by the function make_tax_table to make sure that the rank names begin with capital letters. Makes for prettier plotting when rank names are used as legend headers, etc.

Value

A text vector with first letter of each word capitalized.

Note

This function is given as an example in the documentation for the base function toupper.

See Also

make_tax_table

Examples

1
2
x <- "The quick brown fox jumped over the lazy dog."
simple_cap(x)

jfq3/RDPutils documentation built on Nov. 8, 2019, 1:05 p.m.