Added some print statements for debugging.
Removed car and ROCR (car gets loaded elsewhere) and moved plyr.
Forced sasid to be a character which appears to have been a new problem.
Avoided unnecessary extra code by doing a single rbind() and changed all merges to use left_join from dplyr.
Removed some of the stuff hiding output during debug.
Took out "moves" which were not being used.
White space changes.
White space changes.
White space changes.
Switched to using lapply instead of apply() for clarity.
Changed the error checking from a weird try() setup to instead use a better regex to identify those dates that are preformatted and not recorded as seconds since the SPSS date epoch.
Removed comments that are no longer relevant.
Explicit checks for number of race categories rather than a fall back to 7 categories. Now raises an warning() when number of racial categories is unexpected.
Returns data.frame instead of data.table.