capwords: Capitalise the first letter of each word in a string

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Capitalise the first letter of each word in a string

Usage

1
capwords(s, strict = FALSE)

Arguments

s

A vector of one or more character strings

Value

A vector of one or more character strings with the first letter of each word capitalised

Examples

1
2
3
4
5
# A single character string with two words
capwords('one two')
# Three character strings. The first has two words the last two
 have one word each
capwords(c('one two', 'three', 'four'))

RichardBirnie/mautils documentation built on July 12, 2019, 8:56 p.m.