Learn R Programming

RVerbalExpressions (version 0.0.0.9000)

tab: Match a tab character.

Description

Match a tab character.

Usage

tab(.data = NULL)

Arguments

.data

Expression to append, typically pulled from the pipe %>%

Details

This function is looks for tabs with the following expression: \t

  1. Tab character: https://codepoints.net/U+0009

Examples

Run this code
# NOT RUN {
tab()

# create an expression
x <- tab()

# create input
string <- "foo\tbar"

# extract match
regmatches(string, regexpr(x, string))
# }

Run the code above in your browser using DataLab