Dear All, I want to create a table for several variables. As example. I have a dataframe with following data:
Gender transport driving 1 0 1 0 1 0 1 0 1 Now I want to create a table in the following form: Gender 1 0 Transport 1 2 0 0 0 1 Driving 1 2 0 0 0 1 In which the different percentages are being calculated (row/column). I have tried using ftable() but did not give the desired result (There are a lot of variables and the format makes it impossible to interpret). Is there anyone who can help me with this problem? Thanks in advance. Kind regards, John [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.