capitalize_each_word: This function makes first letter of each word in a string to...

Description Usage Arguments Value Author(s) Examples

View source: R/capitalize-each-word.R

Description

This function capitalizes the first letter of each word in a string to uppercase

Usage

1

Arguments

string

A string object or a vector of string objects with or without . or _ or space delimiters

pattern

A regular expression pattern to split the string with. Default delimiter is space.

Value

A string with first letter of each word capitalized

Author(s)

Som Bohora

Examples

1
2
3
capitalize_each_word("make each letter in this string capitalized.", pattern = NULL)
capitalize_each_word("make_each _etter_in_this_string_capitalized.", pattern = "[_]")
capitalize_each_word("make.each.letter.in.this.string.capitalized.", pattern = "[.]")

sbohora/Somya documentation built on May 14, 2019, 7:35 a.m.