df2qqs: Convert Columns into Categorical Data Based on Quantiles

View source: R/df2qqs.R

df2qqsR Documentation

Convert Columns into Categorical Data Based on Quantiles

Description

This function ranks numeric data into categories such as high, medium and low based on quantiles. Values lower than q1 (first quantile) are classified as low Values greater than q3 (third quantile) are classified as high Values between q1 and q3 are classified as medium

Usage

df2qqs(data, vars = c(), qq = 3, params = NULL)

Arguments

data

a data.frame with the dataset to be transformed

vars

numeric columns in which perform the ranking numeric data based on quantiles

qq

numeric value 2, 3 to define if the transformation will be carried out in lower/upper, low/medium/high

params

a list with the pairs list(var = var, qq = qq) parameters to be employed for the transformation

Value

A data.frame containing the ranking data based on quantiles for the columns indicated in the vars argument


geiser/rshinystatistics documentation built on Feb. 18, 2024, 6:07 p.m.