Learn R Programming

seplyr (version 1.0.4)

mutate_seb: Run a sequence of quoted mutate blocks.

Description

Run a sequence of quoted mutate blocks.

Usage

mutate_seb(d, blocks, env = parent.frame())

Arguments

d

data.frame to work on

blocks

list of sequence named char-array of mutate blocks

env

environment to work in.

Value

d with blocks applied in order

Examples

Run this code
# NOT RUN {
plan <- partition_mutate_qt(a1 := 1, b1 := a1, a2 := 2, b2 := a1 + a2)
print(plan)
d <- data.frame(x = 1) %.>% mutate_seb(., plan)
print(d)

# }

Run the code above in your browser using DataLab