loadMergedFile: Loads and merges a CSV/XLS file with the supplied values...

View source: R/simulate.r

loadMergedFileR Documentation

Loads and merges a CSV/XLS file with the supplied values (keys). ie: returns a dataframe (excluding key_column_name) for the supplied values that exist in key_column_name of the file

Description

Loads and merges a CSV/XLS file with the supplied values (keys). ie: returns a dataframe (excluding key_column_name) for the supplied values that exist in key_column_name of the file

Usage

loadMergedFile(filedir, filename, key_column_name, selected_keys)

Arguments

filedir

file directory, with or without trailing slash

filename

file name. File type is determined from the file extension, eg: ".csv", ".xls", ".xlsx"

key_column_name

a column in the propensity files to merge on, and select those values that appear in selected_keys

selected_keys

a vector of selected keys that are to be retained in the propensities

Value

a dataframe


kcha193/simarioV2 documentation built on April 8, 2024, 4:51 p.m.