eightytwenty: Determine the 80/20 cutoff of a vector

View source: R/eightytwenty.R

eightytwentyR Documentation

Determine the 80/20 cutoff of a vector

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

eightytwenty(x)

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/ucbudar documentation built on July 15, 2024, 5:03 p.m.