sentence_case: Convert a string into sentence case

View source: R/sentence_case.R

sentence_caseR Documentation

Convert a string into sentence case

Description

(^|\.) matches start of string OR literally a fullstop \s* matches whitespace symbols (.) matches any character but a new line \1 Back-references Group 1 \2 Turns Group 2 into uppercase

Usage

sentence_case(string)

Arguments

string

A vector of character string to pass through.

Examples

sentence_case("i'm not hundred percent sure. why not. cool!")

martinctc/textworks documentation built on Oct. 5, 2022, 8:09 p.m.