table_decreasing_hybrid: Frequency Table with Hyrid Sorting: you can sort by frequency...

View source: R/CodeAndRoll2.R

table_decreasing_hybridR Documentation

Frequency Table with Hyrid Sorting: you can sort by frequency and by specified value

Description

This function generates a frequency table of the input vector vec and displays the table sorted by frequency and by a set of specified values. It handles NA values.

Usage

table_decreasing_hybrid(vec, first_elements = FALSE, useNA = "ifany")

Arguments

vec

A vector. The vector for which the frequency table is to be generated.

first_elements

Logical. Should the table be sorted in decreasing order? Default: TRUE.

useNA

A string. Specifies how to handle NA values. Can be "ifany", "always", or "no". Default: "ifany".

Value

A frequency table sorted.

Examples

vec <- c(1, 2, 2, NA, 3, 3, 3)
table_decreasing_hybrid(vec)
table_decreasing_hybrid(vec, first_elements = "1")


vertesy/CodeAndRoll2 documentation built on Nov. 20, 2024, 5:23 a.m.