quartile_: Quartiles Calculus

View source: R/Statistics.R

quartile_R Documentation

Quartiles Calculus

Description

Calculates the 3 Quartiles of a vector of data

Usage

quartile_(x)

Arguments

x

Should be a vector

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:
quartile.jpg

Value

A vector sorted with the elements divided by 4 parts

Note

A vector is created by c(), like c(1,2,3,4,5) creates a vector with the numbers: 1,2,3,4,5

Author(s)

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

Examples

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

LearningRlab documentation built on Aug. 31, 2023, 1:08 a.m.