R/uID.R

Defines functions uID

#' Create unique ID
#'
#' Creates a unique ID given a data frame and a string separated by ;.
#'
#' @param x a data frame.
#' @param uID a string separated by ;.
#'
#' @returns A character vector.
#' @noRd


uID <- function(x,uID){
  do.call(paste, c(as.data.frame(x[,strsplit(uID,split = ";")[[1]]]), sep="_"))
}

Try the ILSAmerge package in your browser

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

ILSAmerge documentation built on April 11, 2025, 5:54 p.m.