tab2df: Table to data frame

View source: R/struc__tab2df.R

tab2dfR Documentation

Table to data frame

Description

Converts a table from function "table" to a two column data frame.

Usage

tab2df(t, new_names = NA, srt = NA)

Arguments

t

Input table

new_names

A character vector of two elements for new column names. Default: Name, Count.

srt

Sort the output data frame by its second column. Legit values: NA, "decreasing", and "increasing".


wanyuac/handyR documentation built on June 10, 2024, 1:24 a.m.