Learn R Programming

tidyrules (version 0.2.7)

positionSpaceOutsideSinglequotes: Position of space outside single quotes

Description

(vectorised) Detect the position of space in a string not within a pair of single quotes

Usage

positionSpaceOutsideSinglequotes(string)

Value

A integer vector of positions

Arguments

string

A character vector

Examples

Run this code
# \donttest{
tidyrules:::positionSpaceOutsideSinglequotes(c("hello", "hel' 'o "))
# }

Run the code above in your browser using DataLab