Description Usage Arguments Value Author(s)
Find leading spaces in a character vector. It's a common error when data is keyboarded.
1 | find_leadspace(x, return_logical = FALSE)
|
x |
character A character vector to test. |
return_logical |
logical If |
An integer vector with the index of the elements with leading space. If return_logical
argument is TRUE
, return a logical vector instead.
Joris Muller
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.