which_trns | R Documentation |
Extract TRN(s) from each element of input
which_trns(x)
x |
A character vector. |
A character vector, length of input.
which_trns(c("NCT00312962", "hello", "euctr2020-001808-42", NA))
df <- dplyr::tibble(trn = c("NCT00312962", "hello", "euctr2020-001808-42", NA))
dplyr::mutate(df, trn_extract = which_trns(trn))
# docDoes not work for multiple TRNs in one element
## Not run:
which_trns(c("NCT00312962 and euctr2020-001808-41", "hello", "euctr2020-001808-42", NA))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.