Skip to contents

Helper Function which returns the mean, unless there is a 0 value then it returns 0

Usage

mean0(vec)

Arguments

vec

numeric vector

Value

the mean of the vector unless 0 is present, then returns 0