powered by
dist.unique.events(dist)
x
fx
dist.unique.events(list(x=c(0,1,1,2),fx=c(0.2,0.25,0.15,0.4)))
Run the code above in your browser using DataLab