powered by
count.diff.direction.error(x, y)
sum((diff(x) / diff(y))<0, na.rm="T)
diagnostic_dawson
#All different count.diff.direction.error(1:10,10:1) #One different count.diff.direction.error(1:10,c(1:9, 8))
Run the code above in your browser using DataLab