Description Usage Arguments Value Author(s) See Also Examples
Compares this String to another object, ignoring case considerations.
The result is TRUE
if and only if the argument is not null and is a String
object or
a character string that represents the same sequence of characters as
this object ignoring the case.
1 2 | ## S3 method for class 'String'
equalsIgnoreCase(this, obj, ...)
|
obj |
The object to compared to. |
Returns TRUE
if the the strings are equal, otherwise FALSE
.
Henrik Bengtsson (http://www.braju.com/R/)
*equals()
, *compareTo()
,
*regionMatches()
1 2 3 4 5 6 7 8 | s1 <- String("Hello world!")
s2 <- String("hello world!")
s3 <- String("Hello world!")
equals(s1, s2) # FALSE
equalsIgnoreCase(s1, s2) # TRUE
equalsIgnoreCase("abc", "ABC") # TRUE
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.