clean_trn | R Documentation |
Current limitations: - Single TRN - Only "ANZCTR", "ClinicalTrials.gov", "DRKS", "ISRCTN", "JapicCTI", "EudraCT", "NTR", "PACTR"
clean_trn(trn, registry = NULL, quiet = FALSE)
trn |
Character. A single (messy) TRN. Note: Function tested on single TRN input only, so could perform unexpectedly if run on text with other pattern matches or multiple TRNs. |
registry |
Character. Registry of TRN. Default to NULL and detected to TRN. Note: Currently, always set registry to NULL because would need further input validation. |
quiet |
Logical. Whether to inform user if TRN changed (and only when TRN changed). Defaults to TRUE. |
Cleaned TRN. If error (e.g., if no trn input or registry not in cleaning list), aborts (could change to inform and return NA). If input trn already clean, return is same as input. If TRN is NA, return NA.
## Not run:
# Error due to invalid TRN or registry not in
clean_trn("nl)277")
clean_trn("IRCT2016080318745N10")
## End(Not run)
# Already clean so won't inform user
clean_trn("NCT01208194")
# Cleaned so will inform user unless quiet == TRUE
clean_trn("nCt01208194")
clean_trn("nCt01208194", quiet = TRUE)
clean_trn("DRKS 00003170")
clean_trn("ISRCTN 02452400")
clean_trn("PACTR 2010020001429343")
clean_trn("EudraCT 2004-002714-11")
clean_trn("2020-001934-37-ES")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.