endsWith {strings} R Documentation

Does String Start or End With Another String?

Description


Determines if entries of x start or end with string (entries of)
prefix or suffix respectively, where strings are recycled to
common lengths.

Usage

endsWith(x, suffix);

Arguments

x

vector of character string whose starts are considered. [as string]

suffix

character vector(often of length one). [as string]

Details

Authors

SMRUCC genomics Institute

Value

A logical vector, of “common length” of x and prefix (or suffix), i.e., of the longer of the two lengths unless one of them is zero when the result is also of zero length. A shorter input is recycled to the output length.

clr value class

Examples


[Package strings version 2.33.856.6961 Index]