Learn R Programming

NCmisc (version 1.2.0)

toheader: 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)

Value

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

Arguments

txt

a character string

strict

whether to force non-leading letters to lowercase

Author

via R Core

Examples

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

Run the code above in your browser using DataLab