Check the validity of code
checkInvalid(temp)
temp
A character string to check validity
The position of the first invalid code or NULL
checkInvalid(c("iris","irisssss"))