tab2df: Function to transform a ftable into dataframe but just...

View source: R/utilities.R

tab2dfR Documentation

Function to transform a ftable into dataframe but just keeping the counts, works with ftable of dim 2

Description

Function to transform a ftable into dataframe but just keeping the counts works with ftable of dim 2

Usage

tab2df(tab)

Arguments

tab

a flat table

Author(s)

Cedric Briand cedric.briand@eptb-vilaine.fr

Examples


df <- data.frame("var1" = c("blue","red"), "var2" = c("nice","ugly"))
ftdf <- ftable(df)
tab2df(ftdf)


stacomirtools documentation built on Sept. 9, 2022, 3:07 p.m.