R/utils.R

Defines functions forceDataFrame cleanName

cleanName <- function(x) {
  janitor::make_clean_names(tolower(x))
}

forceDataFrame <- function(data) {
  if (inherits(data, 'tbl_df')) {
    data <- as.data.frame(data)
    warning('data coerced from tibble to data frame', call.=FALSE)
  }
  data
}

Try the quid package in your browser

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

quid documentation built on Dec. 9, 2021, 9:06 a.m.