Description Usage Arguments Details Value
View source: R/read_km_folder.R
The function reads a collection of files containing data from digitized Kaplan-Meier curves.
1 2 3 4 5 6 7 8 9 | read_km_folder(
path,
preferred_baseline = NULL,
filter = "KM.txt",
split = "_",
study = 1,
outcome = 2,
treatment = 3
)
|
path |
path to a folder containing txt files from digitizing; each text file (corresponding to a Kaplan-Meier curve) should have 3 columns, in the following order: time, number at risk, number of events. Names of columns do not matter. |
preferred_baseline |
character; if you want to specify a preferred baseline treatment |
filter |
character; only files containing |
split |
character; sign that separates study, outcome and treatment |
study |
integer explaining naming convention, see below |
outcome |
integer explaining naming convention, see below |
treatment |
integer explaining naming convention, see below |
By default we assume that the files will follow naming convention such as
study_outcome_trt_KM.txt
, e.g. MOT_OS_Pazo_KM.txt
. If the naming
scheme is different, user can reorder at will or change the separation sign, e.g.
for OS-Pazo-MOT-KM.txt
we would say
split = "-", study = 3, outcome = 1, treatment = 2
.
Data frame which can be used as input into NMA models using survnma
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.