Number of flat spots in a time series

n_flat_spots(x)

Arguments

x

a vector

Value

A numeric value.