I am having trouble making a frequency table where the data is in multiple columns.My dataset is structured like this:
ID shape shape2 shape3 shape4 shape5 12 triangle rhombus circle square rectangle 68 hexagon NA NA NA NA 32 rectangle octagon square NA NA 18 square triangle NA NA NA 27. circle. NA. NA. NA. NA 77. square. trapezoid. triangle. NA. NA I want to get a frequency table of all of the different shapes, like this:
shape. freq triangle. 3 square. 4 circle. 2 hexagon. 1 octagon. 1 trapezoid. 1 rhombus. 1 rectangle 2 Then I really am only interested in 5 shapes, so I would like it to look like this:
shape. freq triangle. 3 square. 4 circle. 2 rectangle 2 Thank you!