taxize_capwords: Capitalize the first letter of a character string.

View source: R/taxize_capwords.r

taxize_capwordsR Documentation

Capitalize the first letter of a character string.

Description

Capitalize the first letter of a character string.

Usage

taxize_capwords(s, strict = FALSE, onlyfirst = FALSE)

Arguments

s

A character string

strict

Should the algorithm be strict about capitalizing. Defaults to FALSE.

onlyfirst

Capitalize only first word, lowercase all others. Useful for taxonomic names.

Examples

taxize_capwords(c("using AIC for model selection"))
taxize_capwords(c("using AIC for model selection"), strict=TRUE)

taxize documentation built on Sept. 11, 2024, 6:13 p.m.