The elig_timevar_collapse function had been skipping some IDs when loading to the temp table. Instead of inserting each ID though code, now using dbWriteTable to load in a single go. Extremely large numbers of IDs may encounter network issues when loading to the SQL DB, but this is yet to be shown. Added a QA check to flag discrepancies.
The elig_timevar_collapse function had been skipping some IDs when loading to the temp table. Instead of inserting each ID though code, now using dbWriteTable to load in a single go. Extremely large numbers of IDs may encounter network issues when loading to the SQL DB, but this is yet to be shown. Added a QA check to flag discrepancies.