View source: R/f_sponsorType.R
f.sponsorType | R Documentation |
Trial concept calculated: type or class of the sponsor(s) of the study. No specific field is available in ISRCTN; thus, sponsor type is set to 'other'. Note: If several sponsors, sponsor type is deemed 'for profit' if any sponsor is commercial.
f.sponsorType(df = NULL)
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. |
data frame with columns '_id' and '.sponsorType', which is a factor with levels 'for profit', 'not for profit' or 'other'.
# fields needed
f.sponsorType()
# 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.sponsorType",
con = dbc)
trialsDf
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.