Report question

Question: counting occurrences in column and create variable in R