Learn R Programming

icd (version 3.3)

rtf_parse_lines: parse lines of RTF

Description

parse a character vector containing RTF strings

Usage

rtf_parse_lines(rtf_lines, verbose = FALSE, save_extras = FALSE, ...)

Arguments

rtf_lines

character vector containing RTF. Encoding?

verbose

single logical value, defaults to FALSE in most functions.

Value

named character vector, with names being the ICD-9 codes, and the contents being the descriptions from the RTF source. Elsewhere I do this the other way around, but the tests are now wired for this layout. 'Tidy' data would favour having an unnamed two-column data frame.

Details

... might include: perl = TRUE, useBytes = TRUE