Package: ctrdata 1.21.1.9000

ctrdata: Retrieve and Analyze Clinical Trials Data from Public Registers

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.

Authors:Ralf Herold [aut, cre], Marek Kubica [cph], Ivan Bozhanov [cph]

ctrdata_1.21.1.9000.tar.gz
ctrdata_1.20.0.9000.zip(r-4.5)ctrdata_1.20.0.9000.zip(r-4.4)ctrdata_1.20.0.9000.zip(r-4.3)
ctrdata_1.21.1.9000.tgz(r-4.5-any)ctrdata_1.21.1.9000.tgz(r-4.4-any)ctrdata_1.21.1.9000.tgz(r-4.3-any)
ctrdata_1.21.1.9000.tar.gz(r-4.5-noble)ctrdata_1.21.1.9000.tar.gz(r-4.4-noble)
ctrdata_1.21.1.9000.tgz(r-4.4-emscripten)ctrdata_1.21.1.9000.tgz(r-4.3-emscripten)
ctrdata.pdf |ctrdata.html
ctrdata/json (API)
NEWS

# Install 'ctrdata' in R:
install.packages('ctrdata', repos = c('https://rfhb.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/rfhb/ctrdata/issues

Pkgdown site:https://rfhb.github.io

On CRAN:

Conda:

clinical-dataclinical-researchclinical-studiesclinical-trialsctgovdatabaseduckdbmongodbnodbipostgresqlregistersqlitestudiestrial

7.85 score 45 stars 32 scripts 1.0k downloads 30 exports 74 dependencies

Last updated 3 days agofrom:be353397a9. Checks:6 OK, 3 FAILURE. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKMar 29 2025
R-4.5-winOUTDATEDFeb 27 2025
R-4.5-macOKMar 29 2025
R-4.5-linuxOKMar 29 2025
R-4.4-macOKMar 29 2025
R-4.4-linuxOKMar 29 2025
R-4.4-winOUTDATEDFeb 27 2025
R-4.3-winOUTDATEDFeb 27 2025
R-4.3-macOKMar 29 2025

Exports:ctrFindActiveSubstanceSynonymsctrGenerateQueriesctrGetQueryUrlctrLoadQueryIntoDbctrOpenSearchPagesInBrowserctrShowOneTrialdbFindFieldsdbFindIdsUniqueTrialsdbGetFieldsIntoDfdbQueryHistorydfMergeVariablesReleveldfName2ValuedfTrials2Longf.controlTypef.isMedIntervTrialf.isUniqueTrialf.likelyPlatformTrialf.numSitesf.numTestArmsSubstancesf.primaryEndpointDescriptionf.primaryEndpointResultsf.resultsDatef.sampleSizef.sponsorTypef.startDatef.statusRecruitmentf.trialObjectivesf.trialPhasef.trialPopulationf.trialTitle

Dependencies:askpassbase64encbitbit64bslibcachemclicliprcountrycodecpp11crayoncurlDBIdigestdplyrevaluatefansifastmapfontawesomefsgenericsgluehighrhmshtmltoolshtmlwidgetshttrjqrjquerylibjsonliteknitrlazyevallifecyclelubridatemagrittrmemoisemimenodbiopensslpillarpkgconfigprettyunitsprogresspurrrR.methodsS3R.ooR.utilsR6rappdirsRcppreadrrlangrmarkdownsassstringdiststringistringrsystibbletidyrtidyselecttimechangetinytextzdbutf8uuidV8vctrsvroomwithrxfunxml2yamlzip

Install R package ctrdata

Rendered fromctrdata_install.Rmdusingknitr::rmarkdownon Mar 29 2025.

Last update: 2025-03-16
Started: 2020-10-16

Retrieve clinical trial information

Rendered fromctrdata_retrieve.Rmdusingknitr::rmarkdownon Mar 29 2025.

Last update: 2025-03-15
Started: 2020-10-16

Summarise and analyse clinical trial information

Rendered fromctrdata_summarise.Rmdusingknitr::rmarkdownon Mar 29 2025.

Last update: 2025-03-15
Started: 2021-12-04

Readme and manuals

Help Manual

Help pageTopics
Getting started, database connection, function overviewctrdata
Information on clinical trial registersctrdata-registers
Trial concepts implemented across registersctrdata-trial-concepts
Find synonyms of an active substancectrFindActiveSubstanceSynonyms
Generates queries that work across registersctrGenerateQueries
Get register name and query parameters from search URLctrGetQueryUrl
Load and store register trial informationctrLoadQueryIntoDb
Open register to show query results or search pagectrOpenSearchPagesInBrowser
Show full structure and all data of a trialctrShowOneTrial
Find names of fields in the database collectiondbFindFields
Get identifiers of deduplicated trial recordsdbFindIdsUniqueTrials
Create data frame of specified fields from database collectiondbGetFieldsIntoDf
Show history of queries loaded into a database collectiondbQueryHistory
Merge variables, keeping type, and optionally relevel factorsdfMergeVariablesRelevel
Get value for variable of interestdfName2Value
Convert data frame with trial records into long formatdfTrials2Long
Calculate type of control data collected in a studyf.controlType
Calculate if study is a medicine-interventional studyf.isMedIntervTrial
Calculate if record is unique for a studyf.isUniqueTrial
Calculate if study is likely a platform trial or notf.likelyPlatformTrial
Calculate number of sites of a studyf.numSites
Calculate type of control data collected in a studyf.numTestArmsSubstances
Calculate details of a primary endpoint of a studyf.primaryEndpointDescription
Calculate type of control data collected in a studyf.primaryEndpointResults
Calculate date of results of a studyf.resultsDate
Calculate sample size of a studyf.sampleSize
Calculate type of control data collected in a studyf.sponsorType
Calculate start date of a studyf.startDate
Calculate status of recruitment of a studyf.statusRecruitment
Calculate objectives of a studyf.trialObjectives
Calculate phase of a clinical trialf.trialPhase
Calculate in- and exclusion criteria and age groupsf.trialPopulation
Calculate the title of a studyf.trialTitle