strcmp | R Documentation |
Compare strings.
strcmp(S, T)
S , T |
character vectors to evaluate |
Comparisons are case-sensitive and any leading and trailing blanks in either of the strings are explicitly included in the comparison.
Returns TRUE
if S
is identical to T
;
otherwise, FALSE
.
Value returned is the opposite of the C language convention.
P. Roebuck proebuck1701@gmail.com
strcmp("foo", "bar") # FALSE
strcmp(c("yes", "no"), c("yes", "no")) # TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.