Learn R Programming

LearningRlab (version 2.4)

quartile_: Quartiles Calculus

Description

Calculates the 3 Quartiles of a vector of data

Usage

quartile_(x)

Value

A vector sorted with the elements divided by 4 parts

Arguments

x

Should be a vector

Author

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

Details

To calculate the quartiles, the user should give a vector. This function divide the dataset in 4 parts as equal as possible. The formula is the following:

Examples

Run this code
{
    #data creation
    data = c(1:20)
    
    quartile_(data)
   
    }

Run the code above in your browser using DataLab