Learn R Programming

Zelig (version 4.2-1)

ucfirst: Uppercase First Letter of a String

Description

This method sets the first character of a string to its uppercase, sets all other characters to lowercase.

Usage

ucfirst(str)

Arguments

str
a vector of charaqcter-strings

Value

  • a vector of character strings