cap_first: Capitalize first letter

Description Usage Arguments Value Examples

View source: R/capwords.R

Description

Capitalizes first letter of a string. Copied from https://stat.ethz.ch/R-manual/R-devel/library/base/html/chartr.html

Usage

1
cap_first(s, strict = FALSE)

Arguments

s

character string to be capitalized

strict

TRUE forces everything to 1st letter capital; FALSE allows for things like acronyms to remain all caps; Defaults to TRUE.

Value

s_cap Original string with first letter capitalization

Examples

1

jstagge/staggefuncs documentation built on Sept. 16, 2017, 5:20 p.m.