UorL: Converting all the Letters of Character Variable into...

Description Usage Arguments Details Value Note Author(s) See Also Examples

Description

UorL was used to convert the letters for a character variable into uppercase or lowercase. The reason we need to do this is sometimes we may be required to compared the same character variable from different files or sources for a consistency check.

Usage

1
UorL(x,charlower=TRUE)

Arguments

x

Specify the character variable whose letters to be changed into uppercase or lowercase.

charlower

Specify whether you want to get the uppercase letters or lowercase letters. It defaults to change all the letters into lowercase.

Details

UorL is an easy function to convert the letters for a character variable into uppercase or lowercase.

Value

UorL returns the results of conversion directly.

Note

None.

Author(s)

Zhijie Zhang, epistat@gmail.com

See Also

See also toupper and tolower functions.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
#Example
l<-"IamAGenius"
UorL(l)
UorL(l,charlower=TRUE)
UorL(l,charlower=T)
UorL(l,charlower=FALSE)
UorL(l,charlower=F)

## End(Not run) 

stam documentation built on May 2, 2019, 3:28 p.m.

Related to UorL in stam...