This is a generalisation of ifelse that accepts an object and return an objects

ifelse2_pipe(.x, .p1, .p2, .f1, .f2, .f3 = NULL)

Arguments

.x

A tibble

.p1

A boolean

.p2

ELSE IF condition

.f1

A function

.f2

A function

.f3

A function

Value

A tibble