Learn R Programming

stacomirtools (version 0.6.0.1)

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 DataLab