Skip to contents

Capitalizes the first character and lowercases the rest of each element.

Usage

str_proper(x)

Arguments

x

Character vector.

Value

A character vector of the same length as x.

Examples

x <- generate_string(nchar = 10, vector = LETTERS, vector_length = 10)
str_proper(x)
#>  [1] "Gsefuwyzew" "Uxjmoyzmqm" "Dezvyttlth" "Hszjahtvkr" "Wtjytzolaz" "Uzclcrocyk" "Mwmujdyywt" "Seaznlljxp" "Bgqzhalzuq" "Ytbbkmmvuy"