Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contDigits =0 #95

Open
wstonemd opened this issue May 9, 2022 · 2 comments
Open

contDigits =0 #95

wstonemd opened this issue May 9, 2022 · 2 comments

Comments

@wstonemd
Copy link

wstonemd commented May 9, 2022

Hi Kaz,

Giving contDigits = 0 to the print.TableOne function to render a continuous variable as an integer appears to error out.

> print(tableOne,contDigits = 1)
                      Stratified by trt
                       1               2               p      test
  n                       158             154                     
  time (mean (SD))     2015.6 (1094.1) 1996.9 (1155.9)  0.883     
  ...
               
> print(tableOne,contDigits = 0)
Error in prettyNum(.Internal(format(x, trim, digits, nsmall, width, 3L,  : 
  invalid value 0 for 'digits' argument
@wstonemd wstonemd changed the title contDigts =0 contDigits =0 May 9, 2022
@kpuka
Copy link

kpuka commented Jul 14, 2022

The same issue and error message is also present for "catDigits = 0".
This only seems to be a problem in version 0.12.0 or higher (there's no issue in version 0.11.2)

@vkerchberger
Copy link

Would love to hear if there has been any progress on this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants