str_uppercase: str_uppercase, str_lowercases

Description Usage Arguments Upper Case and All Caps Lower Case See Also Examples

View source: R/str_uppercase.R

Description

convert string to upper or lower case

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
str_lowercase(string)

str_lower_case(string)

str_lower(string)

str_decapitalize(string)

is_lowercase(string)

is_lower_case(string)

is_lower(string)

str_uppercase(string)

str_upper_case(string)

str_upper(string)

str_all_caps(string)

str_allcaps(string)

str_capitalize(string)

is_uppercase(string)

is_upper_case(string)

is_upper(string)

is_all_caps(string)

is_allcaps(string)

Arguments

string

character; argument to be converted

Upper Case and All Caps

uppercase, upper_case, allcaps, all_caps are all synonyms.

upper case or all caps contains all capital letters.

Lower Case

str_all_caps is a synonym for str_uppercase. is_all_caps is a synonym for is_upper_case.

See Also

str_is

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
 
  str_decapitalize( "ABC" )     # abc
# is_lower_case 
  is_lowercase( 'ABC123' )      # FALSE
  is_lowercase( 'abc123' )      # TRUE 
  is_lowercase( 'aB'  )         # FALSE 
  is_lowercase( '123' )         # TRUE 
  
# str_uppercase   
  str_uppercase( "one flew over the cuckoo's nest" )
  str_uppercase( "catch-22" )  

  str_capitalize( "abc" )               # ABC
  str_all_caps( "abc" )                 # ABC
  
# is_uppercase 
  is_uppercase( 'ABC123' )      # TRUE
  is_uppercase( 'abc123' )      # FALSE 
  is_uppercase( 'aB'  )         # FALSE 
  is_uppercase( '123' )         # TRUE 
   

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