Percent.Rank: Percentage Rank

View source: R/other_functions.R

Percent.RankR Documentation

Percentage Rank

Description

This function calculates percentage rank same as the "PERCENTRANK.INC()" in Excel.

Usage

Percent.Rank(data, signif = 3, percent = TRUE)

Arguments

data

numeric vector. Vector of numeric values.

signif

integer. A numeric value representing significant decimal digits.

percent

logical. Default is TRUE. If FALSE, the results are in ratio. If TRUE, the results are in percentage.

Value

An numeric vector.

Author(s)

Omer Kara

Examples

## Not run: 
Percent.Rank(data, signif = 3, percent = TRUE)
Percent.Rank(data, signif = 5, percent = FALSE)

## End(Not run)


omerkara/okara documentation built on Nov. 21, 2023, 7:56 p.m.