Learn R Programming

tm (version 0.5-9.1)

searchFullText: Full Text Search

Description

Perform a full text search in text documents.

Usage

## S3 method for class 'PlainTextDocument':
searchFullText(x, pattern)

Arguments

x
A text document.
pattern
A regular expression as accepted by gsub.

Value

  • TRUE if the regular expression pattern matches in x, otherwise FALSE.

See Also

getFilters to list available filter functions.

Examples

Run this code
data("crude")
searchFullText(crude[[1]], "co[m]?pany")

Run the code above in your browser using DataLab