spocc_capwords: Capitalize the first letter of a character string.

Description Usage Arguments Examples

Description

Capitalize the first letter of a character string.

Usage

1
spocc_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

1
2
3
4
5
 ## Not run: 
spocc_capwords(c('using AIC for model selection'))
spocc_capwords(c('using AIC for model selection'), strict=TRUE)

## End(Not run)


Search within the spocc package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.