I have a dataset which like:
ID Amt TYPE
1 1000 A
2 200 NA
3 1100 S
I need to count the occurrences of each type within a specific range for each type:
Range A_Count NA_Count S_Count
0-1000 1 1 0
1001-2000 0 0 1
I am tyring to get this so that I can draw a plot using this dataframe, with range as the x-axis and the counts as y-axis. How do I achieve this?
