br = seq(0,1,by=0.1) ranges = paste(head(br,-1), br[-1], sep=" - ") freq = hist(x, breaks=br, include.lowest=TRUE, plot=FALSE) data.frame(range = ranges, frequency = freq$counts)