eightytwenty: Determine the 80/20 cutoff of a vector

Description Usage Arguments Value

View source: R/eightytwenty.R

Description

Given a numerical vector, above what value is there more total value, ie. where is the "80/20" split. Returns the value, and the 80/20 split values.

Usage

1

Arguments

x

a numeric vector to be analysed.

Value

a data frame with the following columns:

  1. cutoff - the cutoff value

  2. perc_of_total_x - the percentage of total value (ie. the "80")

  3. perc_of_rows - the percentage of observations above the cutoff (ie. the "20")


crazybilly/muadc documentation built on March 6, 2021, 4:15 p.m.