Learn R Programming

Xmisc (version 0.2.1)

endswith: Determine if a character string "ends with" specified characters

Description

Determine if a character string "ends with" specified characters

Usage

endswith(x, char, ignore.case = FALSE)

Arguments

x
character, a string
char
character to match
ignore.case
logical, whether case is ignored

Value

logical

Examples

Run this code
endswith('Hello World','world',ignore.case=TRUE)

Run the code above in your browser using DataLab