R/vtreat_pipes.R

Defines functions apply_right.multinomial_plan apply_right.simple_plan apply_right.treatmentplan

# pipes for vtreat

#' @export
apply_right.treatmentplan <- function(pipe_left_arg,
                                      pipe_right_arg,
                                      pipe_environment,
                                      left_arg_name,
                                      pipe_string,
                                      right_arg_name) {
  prepare(pipe_right_arg, pipe_left_arg)
}

#' @export
apply_right.simple_plan <- function(pipe_left_arg,
                                    pipe_right_arg,
                                    pipe_environment,
                                    left_arg_name,
                                    pipe_string,
                                    right_arg_name) {
  prepare(pipe_right_arg, pipe_left_arg)
}

#' @export
apply_right.multinomial_plan <- function(pipe_left_arg,
                                         pipe_right_arg,
                                         pipe_environment,
                                         left_arg_name,
                                         pipe_string,
                                         right_arg_name) {
  prepare(pipe_right_arg, pipe_left_arg)
}

Try the vtreat package in your browser

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

vtreat documentation built on Aug. 20, 2023, 1:08 a.m.