I have a data frame that I would like to get sum of each row and frequency for each column. I have tried to use table and summary but I did not get the right result.