Displaying 1 result from an estimated 1 matches for "a12610228".
Did you mean:
1610228
2007 Sep 10
5
finding the minimum positive value of some data
useRs,
I am looking to find the minimum positive value of some data I have.
Currently, I am able to find the minimum of data after I apply some other
functions to it:
> x
[1] 1 0 1 2 3 3 4 5 5 5 6 7 8 8 9 9 10 10
> sort(x)
[1] 0 1 1 2 3 3 4 5 5 5 6 7 8 8 9 9 10 10
> diff(sort(x))
[1] 1 0 1 1 0 1 1 0 0 1 1 1 0 1 0 1 0
> min(diff(sort(x)))
[1] 0