Description Usage Arguments Examples
View source: R/special_characters.R
Matches a space character.
1 |
.data |
Expression to append, typically pulled from the pipe |
inverse |
Invert match behavior, defaults to |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # match space, default
rx_space()
# dont match space
rx_space(inverse = TRUE)
# create an expression
x <- rx_space()
# create input
string <- "1 apple\t"
# extract match
regmatches(string, regexpr(x, string))
# extract no whitespace by inverting behavior
y <- rx_space(inverse = TRUE)
regmatches(string, gregexpr(y, string))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.