which_registries: Check which registry each element of input is from

View source: R/which_registry.R

which_registriesR Documentation

Check which registry each element of input is from

Description

Check which registry each element of input is from

Usage

which_registries(x)

Arguments

x

A character vector.

Value

A character vector, length of input.

Examples

which_registries(c("NCT00312962", "hello", "euctr2020-001808-42", NA))

df <- dplyr::tibble(trn = c("NCT00312962", "hello", "euctr2020-001808-42", NA))
dplyr::mutate(df, registry = which_registries(trn))

# Does not work for multiple registries in one element
## Not run: 
which_registries(c("NCT00312962 and euctr2020-001808-42", "hello", "euctr2020-001808-42", NA))

## End(Not run)

maia-sh/ctregistries documentation built on July 20, 2024, 8:08 p.m.