Learn R Programming

LearningRlab (version 2.2)

explain.relative_frecuency: Relative Frecuency Calculus Explained

Description

Step by step demonstration of the relative frecuency calculus

Usage

explain.relative_frecuency(v,x)

Arguments

v

Should be a vector

x

Should be a number

Value

A demonstration of the calculus process

Details

To calculate the relative frecuency, the user should give a vector and a number. We can saw the relative frecuency formule in the frecuency_relative help document.

Examples

Run this code
# NOT RUN {
{
    #data creation
    data <- c(1,2,2,5,10,4,2)
    value = 2
    #function execution
    explain.relative_frecuency(data, value)
}
    
# }

Run the code above in your browser using DataLab