Fix if statement only examining first index of argument vector
Fix if statement only examining first index of argument vector

Added a call to 'all' so as to correctly look at all entries of the
argument rather than having R implicity look at the only the first
index when evaluating a boolean vector for use in an 'if' statement.

Dordt-Statistics-Research/LaByRInth,Dordt-Statistics-Research/LaByRInth