Skip to contents

Check if length is correct

Usage

checkLength(x, lengthExpected, argName = NULL)

Arguments

x

any object

lengthExpected

numeric or integer of length 1: expected length

argName

character: name of argument displayed in error message