toheader: Return a string with each first letter of each word in upper...

View source: R/NCmisc.R

toheaderR Documentation

Return a string with each first letter of each word in upper case.

Description

Return a string with each first letter of each word in upper case.

Usage

toheader(txt, strict = FALSE)

Arguments

txt

a character string

strict

whether to force non-leading letters to lowercase

Value

Vector minus NA's, or the matrix/data.frame minus NA rows

Author(s)

via R Core

Examples

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

NCmisc documentation built on Oct. 17, 2022, 5:09 p.m.