I have a data.table of 600,000 rows and execute the following command on it:
ranges <- mapply(function(mi, ma) {seq(from=mi, to=ma, by="days")}, mi=Moves$Start, ma=Moves$End)
I get the following error message after a while:
Error in seq.int(0, to0 - from, by) : wrong sign in 'by' argument
I have tested my code with a smaller dataset and that seems to be working fine. This leads me to think that the error message is the result of the values in the dataset. Can anybody recommend an efficient way to trace the problem row(s) in the data.table? Needless to say, manually checking 600k rows is a bit too much.
Your suggestions for finding the problem rows in the data.table are appreciated!