R/UTILS-frame_append.R

Defines functions frame_append

Documented in frame_append

#' Append expressions to the frame
#'
#' Add named expressions for the [data.table::data.table-class] frame.
#'
#' @export
#'
#' @template data-arg
#' @param ... Expressions to add to the frame.
#' @template parse-arg
#'
#' @examples
#'
#' data.table::data.table() %>%
#'     start_expr %>%
#'     frame_append(anything = "goes")
#'
frame_append <- function(.data, ..., .parse = getOption("table.express.parse", FALSE)) {
    .data$appends <- parse_dots(.parse, ...)
    .data
}

Try the table.express package in your browser

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

table.express documentation built on April 3, 2023, 5:43 p.m.