Run a sequence of quoted mutate blocks.

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

plan <- partition_mutate_qt(a1 := 1, b1 := a1, a2 := 2, b2 := a1 + a2) print(plan)
#> $group00001 #> a1 a2 #> "1" "2" #> #> $group00002 #> b1 b2 #> "a1" "a1 + a2" #>
d <- data.frame(x = 1) %.>% mutate_seb(., plan) print(d)
#> x a1 a2 b1 b2 #> 1 1 1 2 1 3