Description Usage Arguments Examples
Control whether to match the expression only if it appears from the beginning of the line.
1 | rx_start_of_line(.data = NULL, enable = TRUE)
|
.data |
Expression to append, typically pulled from the pipe |
enable |
Whether to enable this behavior, defaults to |
1 2 3 4 5 6 7 8 9 10 | rx_start_of_line(enable = TRUE)
rx_start_of_line(enable = FALSE)
# create expression
x <- rx() %>%
rx_start_of_line() %>%
rx_find("apple")
grepl(x, "pineapple") # should be false
grepl(x, "apple") # should be true
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.