powered by
Function to transform a ftable into dataframe but just keeping the counts works with ftable of dim 2
tab2df(tab)
a flat table
# 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