Truncates vector at 0

zero.truncate(y)

Arguments

y

numeric vector

Value

numeric vector with all values less than 0 set to 0