2
I have the following variable in R
set.seed(7)
valor <- round(runif(35, min=30, max=100), 2)
I want to calculate the amplitude (maximum value - minimum value) for each class of my data.
To calculate the maximum amplitude (of all classes), I did: diff(range(valor))
However, I do not know how to do for each of the classes, by the method of Sturges(nclass.Sturges) I got q have 7 classes.