export_definition_search: Exports definition searches to an excel file

Description Usage Arguments Examples

Description

Exports definition searches to an excel file

Usage

1

Arguments

definition_search

a list of dataframes as produced by build_definition_lists

out_file

file path to the excel file to be exported

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
medical_table <- read.delim("medical.txt", fileEncoding="latin1", stringsAsFactors = FALSE)
drug_table <- read.delim("product.txt", fileEncoding="latin1", stringsAsFactors = FALSE)
def2 <- import_definition_lists(system.file("extdata", "example_search.csv",
                                            package = "rpcdsearch"))
draft_lists <- definition_search(def2, medical_table, drug_table = drug_table)
out_file <- "def_searches.xlsx"
export_definition_search(draft_lists, out_file)

## End(Not run)

rOpenHealth/rpcdsearch documentation built on May 26, 2019, 8:51 p.m.