Example data: Row 56 of highschool_dropout does not handle NA.
Example functions: pairToValue gives the error
Error in if (pair[1] > pair[2]) { : missing value where TRUE/FALSE needed
And pairToValue is used in predictAlternativeWithCorrect, which is important.
But really all functions should get unit tests for NA input. I am not sure what correct behavior is, and it probably varies by function.
For example, the cueValidity function offers the optional paramter replaceNanWith=0.5.
Example data: Row 56 of highschool_dropout does not handle NA. Example functions: pairToValue gives the error Error in if (pair[1] > pair[2]) { : missing value where TRUE/FALSE needed And pairToValue is used in predictAlternativeWithCorrect, which is important.
But really all functions should get unit tests for NA input. I am not sure what correct behavior is, and it probably varies by function.
For example, the cueValidity function offers the optional paramter replaceNanWith=0.5.