R/expressions.R

Defines functions by_expr

#' Construct `by` Expression
#'
#' To be used in data.table()
#'
#' @param character grouping variables
#' @examples
#' by_expr(c("a", "b"))
#' @noRd
by_expr <- function(x) {
  as.call(c(quote(list), lapply(x, as.name)))
}

Try the tsbox package in your browser

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

tsbox documentation built on May 31, 2023, 6:41 p.m.