R/startsWith.R

Defines functions starts_with startsWith

Documented in starts_with startsWith

startsWith <- function(x, prefix, trim=FALSE, ignore.case=FALSE)
{
  if(trim) x <- trim(x)

  if(ignore.case)
  {
    x <- toupper(x)
    prefix <- toupper(prefix)
  }

  base::startsWith(x, prefix)
}

starts_with <- function(...) startsWith(...)

Try the gdata package in your browser

Any scripts or data that you put into this service are public.

gdata documentation built on Oct. 17, 2023, 1:11 a.m.