rsd: Computing relative standard deviation of a vector

Description Usage Arguments Details Value Author(s) Examples

View source: R/filtering.R

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

1
rsd(v)

Arguments

v

a numeric vector

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.

Value

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

Author(s)

Piergiorgio Palla

Examples

1
2
v <-  runif(10, min = 5, max = 30)
rsd(v) 

pjpalla/RFmarkerDetector documentation built on May 25, 2019, 8:19 a.m.