Determine if a character string "starts with" specified characters

Description

Determine if a character string "starts with" specified characters. A modified version of gdata::startsWith.

Usage

1
startswith(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
startswith('Hello World','hello',ignore.case=TRUE)

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