I have a table in R that kinda looks like this:
| DoctorID | Region | | AHDCBA | 4 15 | | ABHAHF | 1 8 T4 | . . . . and so on. Both columns are character types. I want to know how many doctors are there in each region. I tried this code but it's giving me errors. If anyone could help me i'd really appreciate it.
doctors_region <- doctors %>%
group_by(Region, DoctorID)%>%
summarise(number = n())
doctors_region