R/do_collectors.R

Defines functions do_collectors

# assign consitent collector variable to be able to act on data inputs
# more easily - and save original column names to rename data on return

do_collectors <- function(x, collector) {
  x <- guess_collector(x, collector)
  if (is.null(attr(x, "coll_var_orig"))) attr(x, "coll_var_orig") <- collector
  return(x)
}

Try the scrubr package in your browser

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

scrubr documentation built on June 12, 2021, 9:06 a.m.