str_ucfirst: str_ucfirst

Description Usage Arguments See Also Examples

View source: R/str_ucfirst.R

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
11
12
 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 
    

decisionpatterns/lettercase documentation built on May 23, 2020, 4:39 p.m.