Here is my Input:
ID Color 1 green 1 red 1 orange 1 green 1 red 2 red 2 red 2 blue 3 green 3 red
Here is what I want in my output - a count of records by ID for each color:
ID green red orange blue 1 2 2 1 0 2 0 2 0 1 3 1 1 0 0
I know I can get the information using proc freq, but I want to output a dataset exactly like the one I have written above. I can't seem to figure out how to make the colors the columns in this output dataset.