find_pattern: Find pattern

Description Usage Arguments Value Author(s) See Also

View source: R/find_pattern.R

Description

Find a simple pattern and return it to a standardized way to be use by dfcheck.

Usage

1
find_pattern(pattern, x, return_logical = FALSE)

Arguments

pattern

character The pattern to test

x

character A character vector to test.

return_logical

logical If TRUE, return a logical vector. If FALSE (default), return an integer vector.

Value

An integer vector with the index of the elements with the pattern. If return_logical argument is TRUE, return a logical vector instead.

Author(s)

Joris Muller

See Also

find_leadspace(), find_tailspace(), find_multiplespace()


jomuller/dfcheck documentation built on May 19, 2019, 7:26 p.m.