read_rtf: Read a Rich Text Format into R

Description Usage Arguments Value See Also Examples

View source: R/read_rtf.R

Description

A wrapper for read_rtf to read RTFs into R.

Usage

1
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

1
2
3
4
5
6
## Not run: 
rtf_dat <- read_rtf(
    'https://raw.githubusercontent.com/trinker/textreadr/master/inst/docs/trans7.rtf'
)

## End(Not run)

textreadr documentation built on Sept. 28, 2018, 5:09 p.m.