Replace numeric values less than given 'cutoff' from a tbl.

tbl_replace_less_than(tbl, cutoff, replace_by)

Arguments

tbl

a tbl.

cutoff

a numeric value to be used as a cutoff.

replace_by

a numeric value to be used to replace less than cutoff.

Value

a tbl.

Examples

if (FALSE) { tbl <- tibble::tibble(x = letters[1:5] , y = LETTERS[1:5] , z = 1:5 , w = 5:1) tbl %>% tbl_replace_less_than(4, 0 ) }