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/nitools documentation built on Jan. 26, 2024, 8:24 p.m.