robertgrant / html-reports

Create statistical report output in HTML from R and Stata. Lightweight functions to produce the stuff I need and nothing else.
The Unlicense
1 stars 0 forks source link

R: blank factor levels are not regarded as missing in unitab #1

Closed robertgrant closed 8 years ago

robertgrant commented 8 years ago

Probably needs an if branch that deals with factors because the useNA=FALSE option to table doesn't cut it. They should be labeled as too.

robertgrant commented 8 years ago

Checked various scenarios. Advice given to avoid it by careful factor level labelling. This is better than any workaround to second-guess what people want from their factors.