find_tailspace: Find tailing spaces

Description Usage Arguments Value Author(s) See Also

View source: R/find_pattern.R

Description

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

Usage

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

Author(s)

Joris Muller

See Also

find_leadspace()


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