spocc_capwords: Capitalize the first letter of a character string.

View source: R/zzz.r

spocc_capwordsR Documentation

Capitalize the first letter of a character string.

Description

Capitalize the first letter of a character string.

Usage

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

Arguments

s

A character string

strict

Should the algorithm be strict about capitalizing. Default: FALSE

onlyfirst

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

Examples

## Not run: 
spocc_capwords(c('using AIC for model selection'))
spocc_capwords(c('using AIC for model selection'), strict=TRUE)

## End(Not run)

ropensci/spocc documentation built on March 10, 2024, 4:27 a.m.