bin1(x, ab, nbin=50)
bin1
returns a list including the vector of integer bin counts and
the ab vector and the number of points outside the ab interval.
ash1
x <- rnorm(100) # data vector
ab <- c(-5,5) # bin interval
bins <- bin1(x,ab,10) # bin x into 10 bins over ab
Run the code above in your browser using DataLab