Skip to contents

Take a vector of values and get the histogram for integer breaks

Usage

observations_to_histogram(x, histogram_bin_width = 1)

Arguments

x

a vector of observations

histogram_bin_width

Size of histogram bin, assuming a base 1 system

Value

a Histogram object representing counts of the data

Examples

if (FALSE)  observations_to_histogram(sample(1:10, 100, replace = T))