textreadr (version 0.9.0)

read_rtf: Read a Rich Text Format into R

Description

A wrapper for read_rtf to read RTFs into R.

Usage

read_rtf(file, skip = 0, remove.empty = TRUE, trim = TRUE, ...)

Arguments

file

A path to a RTF file.

skip

The number of lines to skip.

remove.empty

logical. If TRUE empty elements in the vector are removed.

trim

logical. If TRUE the leading/training white space is removed.

Other arguments passed to read_rtf.

Value

Returns a character vector.

See Also

read_rtf

Examples

Run this code
# NOT RUN {
rtf_dat <- read_rtf(
    'https://raw.githubusercontent.com/trinker/textreadr/master/inst/docs/trans7.rtf'
)
# }

Run the code above in your browser using DataCamp Workspace