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)))
}
christophsax/tsbox documentation built on Sept. 22, 2023, 2:35 p.m.