Trial concept calculated: number of the sites where the trial is conducted. EUCTR lacks information on number of sites outside of the EEA; for each non-EEA country mentioned, at least one site is assumed.
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.
Examples
# fields needed
f.numSites()
#> $euctr
#> [1] "e851_number_of_sites_anticipated_in_the_eea"
#> [2] "e863_trial_sites_planned_in"
#>
#> $ctgov
#> [1] "location.facility.address.city"
#>
#> $ctgov2
#> [1] "protocolSection.contactsLocationsModule.locations.city"
#>
#> $isrctn
#> [1] "participants.trialCentres.trialCentre.name"
#>
#> $ctis
#> [1] "authorizedPartsII.trialSites.id"
#> [2] "authorizedApplication.authorizedPartsII.trialSites.id"
#>
if (FALSE) { # \dontrun{
# 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.numSites",
con = dbc)
} # }