stacomirtools (version 0.5.2)

tab2df: 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

Examples

Run this code
# NOT RUN {
df <- data.frame("var1" = c("blue","red"), "var2" = c("nice","ugly"))
ftdf <- ftable(df)
tab2df(ftdf)
# }

Run the code above in your browser using DataCamp Workspace