dbFindIdsUniqueTrials: Deduplicate records to provide unique clinical trial...

Description Usage Arguments Value Examples

View source: R/utils.R

Description

If records for a clinical trial are found from more than one register, the record from EUCTR is returned. The function currently relies on CTGOV recording other identifiers such as the EudraCT number in the field "Other IDs".

Usage

1
2
3
4
dbFindIdsUniqueTrials(preferregister = "EUCTR",
  prefermemberstate = "GB", include3rdcountrytrials = TRUE,
  collection = "ctrdata", db = "users", url = "mongodb://localhost",
  username = "", password = "", verbose = TRUE)

Arguments

preferregister

The abbreviation of the preferred register, in case a trial is in more than one register (string, either "EUCTR" or "CTGOV"). If set to an empty string (""), keeps the keys for the same trial in both registers in the returned vector.

prefermemberstate

Code of single EU Member State for which records should returned. If not available, a record for GB or lacking this, any other record for the trial will be returned. For a list of codes of EU Member States, please see vector countriesEUCTR. Alternatively, "3RD" will lead to return the Third Country record of a trial, if available.

include3rdcountrytrials

A logical value if trials should be retained that are conducted *exclusively* in third countries, that is outside the European Union.

collection

Name of collection (default is "ctrdata")

db

Name of database (default is "users")

url

Address of the mongodb server in mongo connection string URI format http://docs.mongodb.org/manual/reference/connection-string/ (default is mongodb://localhost)

username

In case access requires credentials.

password

In case access requires credentials.

verbose

If set to TRUE, prints out information about numbers of records found at subsequent steps when searching for duplicates

Value

A vector with strings of keys ("_id" in the database) that represent non-duplicate trials.

Examples

1
2
3
4
## Not run: 
dbFindIdsUniqueTrials()

## End(Not run)

rfhb/ctrdata documentation built on Jan. 15, 2019, 2:24 a.m.