powered by
This function calculate the percentiles of a vector of numbers
percentile_(x, p)
A vector sorted with the elements divided by 100 parts
Should be a vector
Should be a number, 0 => y =< 1
Dennis Monheimius, dennis.monhemimius@edu.uah.es Eduardo Benito, eduardo.benito@edu.uah.es Juan Jose Cuadrado, jjcg@uah.es Universidad de Alcala de Henares
To calculate the percentiles, the user should give a vector. This function divide the dataset in 100 parts as equal as possible. The formula is the following:
{ #data creation data = c(1,4,3,3,2,5,7,12,1,2,3,12) percentile_(data,0.3) }
Run the code above in your browser using DataLab