R/00_helpers.R

# find by columns that were not named explicitly in order to consider them
# temporary
get_tmp_by_cols <- function(x, by){
  if (inherits(by, "quosures")) {
    nms  <- rlang::names2(by)
    vals <- purrr::map_chr(by[nms == ""],~deparse(.[[2]]))
    setdiff(vals, names(x))
  } else ""
}
moodymudskipper/tidyx documentation built on May 17, 2019, 10:39 a.m.