powered by
Compare strings.
strcmp(S, T)
Returns TRUE if S is identical to T; otherwise, FALSE.
TRUE
S
T
FALSE
character vectors to evaluate
P. Roebuck proebuck1701@gmail.com
Comparisons are case-sensitive and any leading and trailing blanks in either of the strings are explicitly included in the comparison.
strcmp("foo", "bar") # FALSE strcmp(c("yes", "no"), c("yes", "no")) # TRUE
Run the code above in your browser using DataLab