By and odd turn of event, I was looking for a way to check for complex number in a string of characters.
After taking a quick look at the
check.numeric function in the varhandle package I found that checking for complex number can be done by modifying the
The down side of this modification is that it will find a complex as well as a numeric.
In any case, I thought this would be worth mentioning (and potentially including) to the varhandle package.
Guillaume Blanchet Université de Sherbrooke