In R language - I have lets say I have a DF with two columns Fam and Prop both categorical, now Fam has repeated names like Algea, Fungi, etc and column Prop has categorical numbers and NA's. How can I get a table/output that for each value of A it tells me how many values are not. NA example:
Fam Prop
-------------
Algea one
Fungi two
Algea NA
Algea three
Fungi one
Fungi NA
Output:
Algea 2
Fungi 2
I know using the count function should be a direction for the solution but can't seem to solve it, because the Fam column has repeating values.