billdenney / pknca

An R package is designed to perform all noncompartmental analysis (NCA) calculations for pharmacokinetic (PK) data.
http://billdenney.github.io/pknca/
GNU Affero General Public License v3.0
71 stars 23 forks source link

Apply uniqueness check after excluding values #298

Closed billdenney closed 5 months ago

billdenney commented 5 months ago

The "rows that are not unique" test occurs before filtering the data for excluded rows. Sometimes, rows may be excluded because they are duplicates. So, perform the uniqueness test after accounting for exclusion.

https://github.com/billdenney/pknca/blob/7ca2a9333b097c813e839b0206a73c92de670282/R/class-PKNCAconc.R#L109

https://github.com/billdenney/pknca/blob/7ca2a9333b097c813e839b0206a73c92de670282/R/class-PKNCAdose.R#L114