Closed zenalapp closed 3 years ago
When the user provides multiple rows with the same source and destination facility, the error is:
Error in mde(x) : 'list' object cannot be coerced to type 'double'
These errors occur because tidyr::pivot_wider in indirect_flow returns list elements.
tidyr::pivot_wider
indirect_flow
Add check for this.
Example:
regentrans::patient_transfer(dplyr::bind_rows(regentrans::pt_flow,regentrans::pt_flow),NULL, regentrans::dists, regentrans::locs)
When the user provides multiple rows with the same source and destination facility, the error is:
These errors occur because
tidyr::pivot_wider
inindirect_flow
returns list elements.Add check for this.
Example: