Dear R Community,
I have a dataset of drugs and need to count how many each individual has been prescribed using:
distinct(prochi, approved_name) >%>
count(approved_name, sort = TRUE -> table_1
BUT some of the drugs (defined as approved_name variable) are combination drugs and for a small number of drugs I need to count them twice. For example, co-codamol. Can I write a caveat into this code so that these combination drugs count = 2 and ll other drugs count = 1?