toCaps: Capitalize first character

View source: R/addons.R

toCapsR Documentation

Capitalize first character

Description

The function capitalizes the first character of the given string or every element of the character vector.

Usage

toCaps(word)

Arguments

word

character vector

Value

character vector

Author(s)

Małgorzata Oleś <malgorzata.oles@embl.de>

Examples

toCaps("abc")
toCaps(c("abc", "Abc", "aBC", "ABC", "4you"))

MalgorzataOles/BloodCancerMultiOmics2017 documentation built on March 29, 2024, 2:29 p.m.