Description Usage Arguments Value Author(s) Examples
Tests if the string starts with a prefix or not.
1 2 | ## S3 method for class 'String'
startsWith(this, prefix, ...)
|
prefix |
The prefix. |
Returns TRUE
if the string starts with the given prefix, otherwise
FALSE
.
Henrik Bengtsson (http://www.braju.com/R/)
1 2 3 4 | s <- String("Hello world!")
startsWith(s, "Hello") # TRUE
startsWith(s, "hello") # FALSE
startsWith("Hello world!", "Hello") # TRUE
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.