I have a dataset in R where one disease is coded with different code numbers.
Just, for example, let's take code as -
set.seed(1)
df <- data.frame(Gender = sample(c("Male", "Female", "Other"), 20, T),
Disease = sample(c("709", "908", "1515", "698", "890", "20"), 20, T))
Code numbers such as - 709, 1515, and 20 belong to only one disease named Gonorrhoea.
Now, I have to generate a table for gender and only for Gonorrhoea. I am wondering how can it be done. Any suggestions?
I will be very thankful for any kind of helpful input.
In case, the question is unclear, let me know :)
Wish you all a lovely day.