cv_check: Calculates the coefficient of variation across groups

Description Usage Arguments Value Examples

Description

Calculates the coefficient of varation across groups

Usage

1

Arguments

data

Vector of numerical values

group

Vector of factors with which to group the numerical values

Value

dataframe with row per group, and a column of CV values

Examples

1
2
3
4
5
6
7
a <- rnorm(100, 10, 1)
b <- rnorm(100, 10, 10)
vals <- c(a, b)
grouping <- c(rep('a', 100), rep('b', 100))
df <- data.frame(vals, grouping)
cv_check(data = df$vals,
          group = df$grouping)

Swarchal/Smisc documentation built on May 9, 2019, 3:23 p.m.