R/add_sample_name.R

Defines functions add_sample_name

Documented in add_sample_name

add_sample_name <- function(data=NULL, sample=NULL) {
  if (is.null(data)) stop("Mandatory argument data is missing")
  if (is.null(sample)) stop("Mandatory argument sample is missing")

  data <- data %>% dplyr::mutate(sample = sample)
  return(data)
}
Bio-Core/BioCore.Annotation documentation built on Feb. 3, 2020, 6:01 p.m.