extract_report_data: extract_report_data

Description Usage Arguments Value Examples

View source: R/extract_report_data.R

Description

extract_report_data

Usage

1
extract_report_data(reports, variable_regexs)

Arguments

reports

the data frame containing the text reports

variable_regexs

the dataframe containing the regular expressions

Value

a dataframe of all the extracted numerical variables from each report

Examples

1
2
extract_report_data(data.frame(report1 = "hello world 23.0%", report2 = "hello world 54.0%"),
data.frame(percentage = "hello world (?<value>\\d+\\.?\\d*)(?<units>\\w*)"))

nicksunderland/rmriextractor documentation built on Dec. 22, 2021, 2:14 a.m.