R/hyperlink_ucids.R

Defines functions hyperlink_ucids

hyperlink_ucids <- function(x,
                            urlPrefix = "#",
                            regex = "dct:([a-zA-Z0-9_]+)",
                            replacement = paste0("[dct:\\1](",
                                                 urlPrefix,
                                                 "\\1)")) {
  return(gsub(regex,
              replacement,
              x));
}

Try the psyverse package in your browser

Any scripts or data that you put into this service are public.

psyverse documentation built on March 7, 2023, 8:31 p.m.