Checks whether a character string begins with a particular prefix.
Character string, or vector of character strings, to be tested.
A single character string.
This simple wrapper function checks whether (each entry in)
begins with the string
firstbit, and returns a logical value
or logical vector with one entry for each entry of
This function is useful mainly for reducing complexity in model formulae.
Logical vector of the same length as
begins(c("Hello", "Goodbye"), "Hell") begins("anything", "")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.