select_kmdata: Select data sets

View source: R/utils.R

select_kmdataR Documentation

Select data sets

Description

Select publication data sets based on study characteristics including outcome, sample size, treatment arms, journal, disease, etc.

Usage

select_kmdata(..., return = c("name", "key", "data"))

Arguments

...

an expression to be evaluated within kmdata_key such as ReportedSampleSize < 100; see examples

return

type of object to return; one of "name" (default) for the study names that match the criteria, "key" for the matching rows of kmdata_key, or "data" for a list of data frames for each match

Examples

names(kmdata_key)
select_kmdata(ReportedSampleSize < 100)
select_kmdata(grepl('folfiri', Arms) & Outcome == 'OS')
select_kmdata(ReportedSampleSize < 100 |
  Cancer %in% c('Lung/Colorectal', 'Prostate'))

## get a list of the data sets
l <- select_kmdata(ReportedSampleSize < 100, return = 'data')
op <- par(mfrow = sort(n2mfrow(length(l))))
sapply(l, kmplot)
par(op)


raredd/kmdata documentation built on June 15, 2025, 9:33 a.m.