find_multiplespace: Find multiple spaces

Description Usage Arguments Value Author(s)

View source: R/find_pattern.R

Description

Find multiple spaces in a character vector. It's a common error when data is keyboarded.

Usage

1
find_multiplespace(x, return_logical = FALSE)

Arguments

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 multiple space. If return_logical argument is TRUE, return a logical vector instead.

Author(s)

Joris Muller


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