Rev 68948 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/tools/man/toTitleCase.Rd% Part of the R package, https://www.R-project.org% Copyright 2015 R Core Team% Distributed under GPL 2 or later\name{toTitleCase}\alias{toTitleCase}\title{Convert Titles to Title Case}\description{Convert a character vector to title case, especially package titles.}\usage{toTitleCase(text)}\arguments{\item{text}{a character vector.}}\details{This is intended for English text only.No definition of\sQuote{title case} is universally accepted: all agreethat \sQuote{principal} words are capitalized and common words like\sQuote{for} are not, but not which words fall into each category.Generally words in all capitals are left alone: this implementationknows about conventional mixed-case words such as \sQuote{LaTeX} and\sQuote{OpenBUGS} and a few technical terms which are not usuallycapitalized such as \sQuote{jar} and \sQuote{xls}. However, unknowntechnical terms will be capitalized unless they are single wordsenclosed in single quotes: names of packages and libraries should bequoted in titles.}\value{A character vector of the same length as \code{text}, without names.}