Learn R Programming

RFmarkerDetector (version 1.0.1)

rsd: Computing relative standard deviation of a vector

Description

This function computes the relative standard deviation (also known as coefficient of variation) of a numeric vector defined as the ratio of the standard deviation to the mean of the vector elements, expressed as percentage

Usage

rsd(v)

Arguments

v
a numeric vector

Value

the value of the coefficient of variation of the input vector expressed as a percentage and rounded to two decimal places

Details

the coefficient of variation shows the extent of variability in relation to mean of the population. It is expressed as a percentage. Lower values indicate lower variability.

Examples

Run this code
v <-  runif(10, min = 5, max = 30)
rsd(v) 

Run the code above in your browser using DataLab