f.trialTitle {ctrdata} | R Documentation |
Calculate the title of a study
Description
Trial concept calculated: scientific or full title of the study.
Usage
f.trialTitle(df = NULL)
Arguments
df |
data frame such as from dbGetFieldsIntoDf. If 'NULL', prints fields needed in 'df' for calculating this trial concept, which can be used with dbGetFieldsIntoDf. |
Value
data frame with columns '_id' and '.trialTitle', a string.
Examples
# fields needed
f.trialTitle()
# apply trial concept when creating data frame
dbc <- nodbi::src_sqlite(
dbname = system.file("extdata", "demo.sqlite", package = "ctrdata"),
collection = "my_trials", flags = RSQLite::SQLITE_RO)
trialsDf <- dbGetFieldsIntoDf(
calculate = "f.trialTitle",
con = dbc)
trialsDf
[Package ctrdata version 1.24.0 Index]