strcmp {matlab2r} | R Documentation |
Compare two character elements
Description
Logical test if two character elements are identical
Usage
strcmp(s1, s2)
Arguments
s1 |
first character element (string, vector or matrix) |
s2 |
second character element (string, vector or matrix) |
Value
a logical element of the same type as the input
Examples
strcmp("yes", "no")
strcmp("yes", "yes")
strcmp("no", "no")
[Package matlab2r version 1.5.0 Index]