use is.factor etc
prefer stopifnot
Merge branch 'master' of github.com:jackwasey/jwutil