# NOT RUN {
# bin Sepal.Width according to Sepal.Length.
iris$bin <- binbyvol(iris, 'Sepal.Width', 'Sepal.Length', 5)
# check the binning success.
aggregate( Sepal.Length ~ bin, data = iris, sum )
# }
Run the code above in your browser using DataLab