ctrdata1.25.0 package

Retrieve and Analyze Clinical Trials Data from Public Registers

ctrdata-package

ctrdata: Retrieve and Analyze Clinical Trials Data from Public Registe...

ctrdata-registers

Information on clinical trial registers

ctrdata-trial-concepts

Trial concepts implemented across registers

ctrdata

Getting started, database connection, function overview

ctrDb

Check and prepare nodbi connection object for ctrdata

ctrFindActiveSubstanceSynonyms

Find synonyms of an active substance

ctrGenerateQueries

Generates queries that work across registers

ctrGetQueryUrl

Get register name and query parameters from search URL

ctrLoadQueryIntoDb

Load and store register trial information

ctrOpenSearchPagesInBrowser

Open register to show query results or search page

ctrShowOneTrial

Show full structure and all data of a trial

dbFindFields

Find names of fields in the database collection

dbFindIdsUniqueTrials

Get identifiers of deduplicated trial records

dbGetFieldsIntoDf

Create data frame of specified fields or trial concepts from database ...

dbQueryHistory

Show history of queries loaded into collection

dfMergeVariablesRelevel

Merge variables, keeping type where possible, optionally relevel facto...

dfName2Value

Get value for variable of interest

dfTrials2Long

Convert data frame with trial records into long format

f.assignmentType

Calculate type of assignment to intervention in a study

f.controlType

Calculate type of control data collected in a study

f.externalLinks

Calculate the external references from a study's register record

f.hasResults

Calculate if a study's results are available

f.isMedIntervTrial

Calculate if study is a medicine-interventional study

f.isUniqueTrial

Calculate if record is unique for a study

f.likelyPlatformTrial

Calculate if study is likely a platform trial or not

f.numSites

Calculate number of sites of a study

f.numTestArmsSubstances

Calculate number of arms or groups with investigational medicines in a...

f.primaryEndpointDescription

Calculate details of a primary endpoint of a study

f.primaryEndpointResults

Calculate details of a study's primary endpoint analysis and testing

f.resultsDate

Calculate date of results of a study

f.sampleSize

Calculate sample size of a study

f.sponsorType

Calculate type of sponsor of a study

f.startDate

Calculate start date of a study

f.statusRecruitment

Calculate status of recruitment of a study

f.trialObjectives

Calculate objectives of a study

f.trialPhase

Calculate phase of a clinical trial

f.trialPopulation

Calculate in- and exclusion criteria and age groups

f.trialTitle

Calculate the title of a study

A system for querying, retrieving and analyzing protocol- and results-related information on clinical trials from four public registers, the 'European Union Clinical Trials Register' ('EUCTR', <https://www.clinicaltrialsregister.eu/>), 'ClinicalTrials.gov' (<https://clinicaltrials.gov/> and also translating queries the retired classic interface), the 'ISRCTN' (<http://www.isrctn.com/>) and the 'European Union Clinical Trials Information System' ('CTIS', <https://euclinicaltrials.eu/>). Trial information is downloaded, converted and stored in a database ('PostgreSQL', 'SQLite', 'DuckDB' or 'MongoDB'; via package 'nodbi'). Protocols, statistical analysis plans, informed consent sheets and other documents in registers associated with trials can also be downloaded. Other functions implement trial concepts canonically across registers, identify deduplicated records, easily find and extract variables (fields) of interest even from complex nested data as used by the registers, merge variables and update queries. The package can be used for monitoring, meta- and trend-analysis of the design and conduct as well as of the results of clinical trials across registers.

  • Maintainer: Ralf Herold
  • License: MIT + file LICENSE
  • Last published: 2025-08-26