Suppose in R, we have a vector of real numbers x. Write R code to divide x
up into 3 equally spaced bins, and count the number of elements of x that
lie in each bin, and store these counts in a vector y (i.e., y should have three
elements: the rst element should be the count for the rst bin, and the
second element should be the count for the second bin, and so on). The rst
bin should have left extent given by the minimum value of x and the last bin
should have right extent given by the maximum value of x. The bins must
exclude their left end-point, and include their right end-point. Provide your
code, and also create 4 small examples (versions of x) using any values you
like, demonstrating that the lines of code meet the requirements.