surveytoolbox icon indicating copy to clipboard operation
surveytoolbox copied to clipboard

error occur when one of label is numeric

Open SewerynGrodny opened this issue 3 years ago • 0 comments

hi,

good package. Thanks for work. I have a problem with surveytoolbox::varl_tb, it occurs when one of label is a number. It is then silently converted to numeric, and cannot be coerced to character. I would recommend adding extra ifelse. Something like ifelse(is.numeric(.), as.character(.), .). Should work fine then.

Best Seweryn

SewerynGrodny avatar Oct 15 '21 08:10 SewerynGrodny