Skip to contents

Rounds data in a dataframe column to 0 when below a certain threshold. Also rounds non finite values to 0 automatically.

Usage

round_to_zero(data, col_name, zero_threshold = 0.01)

Arguments

data

dataframe of processed MSE data

col_name

name of data column to round

zero_threshold

threshold to round down to zero