checkDim.Rd
Check if dimensions are correct
checkDim(x, dimExpected, argName = NULL)
any object
numeric: vector of expected dimensions
character: name of argument displayed in error message