Determine if a character string "ends with" specified characters

Share:

Description

Determine if a character string "ends with" specified characters

Usage

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

Arguments

x

character, a string

char

character to match

ignore.case

logical, whether case is ignored

Value

logical

Author(s)

Xiaobei Zhao

Examples

1
endswith('Hello World','world',ignore.case=TRUE)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.