fup: Transform first character of a string to uppercase.

View source: R/helpers.R

fupR Documentation

Transform first character of a string to uppercase.

Description

Transform first character of a string to uppercase. This is useful when labeling plots. Important: this function does not know about different encodings, languages or anything, it just calls toupper for the first character.

Usage

fup(word)

Arguments

word

string. Any string.

Value

string, the input string with the first character transformed to uppercase.

Examples

   word_up = fup("word");


dfsp-spirit/fsbrain documentation built on Nov. 28, 2024, 10:29 a.m.