strcmp: Compare two character elements

View source: R/strcmp.R

strcmpR 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")

matlab2r documentation built on Feb. 16, 2023, 10:39 p.m.

Related to strcmp in matlab2r...