upcase: Capitalize words in a vector of characters

View source: R/upcase.R

upcaseR Documentation

Capitalize words in a vector of characters

Description

Capitalize words in a vector of characters

Usage

upcase(s, method = c("sentence", "word", "strict"))

Arguments

s

vector of characters

method

either sentence (first letter in each element of the vector), word (first letter in each word of the sentence) or strict ( first letter in each word of the sentence)

Examples

upcase(c("using AIC", "for model selection"))
upcase(c("using AIC", "for model selection"), method = 'word')
upcase(c("using AIC", "for model selection"), method = 'strict')

lbraglia/lbmisc documentation built on April 29, 2024, 11:27 a.m.