MUCollective / pgog

Supplemental to A Probabilistic Grammar of Graphics
14 stars 1 forks source link

Better definition to categorical variable #86

Closed xiaoyingpu closed 4 years ago

xiaoyingpu commented 4 years ago

Use rlang::is_integerish() to decide if a variable is categorical; just change the line below, and add tests for this

https://github.com/MUCollective/pgog/blob/841f0d53d4d102d6960c435e499d9f1173106c02/R/stat-bloc.R#L73