ddediu / AdhereR

Computation of adherence to medications from Electronic Healthcare Data in R
26 stars 6 forks source link

Sometimes if the input data uses columns with special names there is a crash #191

Closed ddediu closed 2 years ago

ddediu commented 2 years ago

e.g., for CMA_per_episode(), if the input dataframe has a column episode.start or episode.end, there's a nasty crash.

ddediu commented 2 years ago

Fixed: now I use only the columns really needed from the data + check if the column names are reserved.