checkLength.Rd
Check if length is correct
checkLength(x, lengthExpected, argName = NULL)
any object
numeric or integer of length 1: expected length
character: name of argument displayed in error message