str_ucfirst: str_ucfirst

Description Usage Arguments See Also Examples

Description

Convert first character of a string to uppercase

Usage

1
2
3
str_ucfirst(string)

is_ucfirst(string)

Arguments

string

character vector to be converted.

See Also

str_title_case

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
str_ucfirst( "one flew over the cuckoo's nest" )
 str_ucfirst( "catch-22" )
 str_ucfirst( "Portrait of the Artist as a Young Man" )
# is_ucfirst
  is_ucfirst( 'ABC123' )      # TRUE
  is_ucfirst( 'abc123' )      # FALSE
  is_ucfirst( 'aBC'  )        # FALSE
  is_ucfirst( 'Abc' )         # TRUE
  is_ucfirst( 'Abc dEF' )     # FALSE
  is_ucfirst( '123' )         # TRUE

lettercase documentation built on May 1, 2019, 9:45 p.m.