`TableOne`

class objects`print`

method for the `TableOne`

class objects created by `CreateTableOne`

function.

1 2 3 4 5 6 | ```
## S3 method for class 'TableOne'
print(x, catDigits = 1, contDigits = 2, pDigits = 3,
quote = FALSE, missing = FALSE, explain = TRUE, printToggle = TRUE,
test = TRUE, smd = FALSE, noSpaces = FALSE, format = c("fp", "f", "p",
"pf")[1], showAllLevels = FALSE, cramVars = NULL, exact = NULL,
nonnormal = NULL, minMax = FALSE, ...)
``` |

`x` |
Object returned by |

`catDigits` |
Number of digits to print for proportions. Default 1. |

`contDigits` |
Number of digits to print for continuous variables. Default 2. |

`pDigits` |
Number of digits to print for p-values (also used for standardized mean differences). Default 3. |

`quote` |
Whether to show everything in quotes. The default is FALSE. If TRUE, everything including the row and column names are quoted so that you can copy it to Excel easily. |

`missing` |
Whether to show missing data information (not implemented yet, placeholder) |

`explain` |
Whether to add explanation to the variable names, i.e., (%) is added to the variable names when percentage is shown. |

`printToggle` |
Whether to print the output. If FLASE, no output is created, and a matrix is invisibly returned. |

`test` |
Whether to show p-values. TRUE by default. If FALSE, only the numerical summaries are shown. |

`smd` |
Whether to show standardized mean differences. FALSE by default. If there are more than one contrasts, the average of all possible standardized mean differences is shown. For individual contrasts, use |

`noSpaces` |
Whether to remove spaces added for alignment. Use this option if you prefer to align numbers yourself in other software. |

`format` |
The default is "fp" frequency (percentage). You can also choose from "f" frequency only, "p" percentage only, and "pf" percentage (frequency). |

`showAllLevels` |
Whether to show all levels. FALSE by default, i.e., for 2-level categorical variables, only the higher level is shown to avoid redundant information. |

`cramVars` |
A character vector to specify the two-level categorical variables, for which both levels should be shown in one row. |

`exact` |
A character vector to specify the variables for which the p-values should be those of exact tests. By default all p-values are from large sample approximation tests (chisq.test). |

`nonnormal` |
A character vector to specify the variables for which the p-values should be those of nonparametric tests. By default all p-values are from normal assumption-based tests (oneway.test). |

`minMax` |
Whether to use [min,max] instead of [p25,p75] for nonnormal variables. The default is FALSE. |

`...` |
For compatibility with generic. Ignored. |

A matrix object containing what you see is also invisibly returned. This can be assinged a name and exported via `write.csv`

.

Kazuki Yoshida, Justin Bohn

`CreateTableOne`

, `CreateTableOne`

, `summary.TableOne`

1 | ```
## See examples for CreateTableOne and svyCreateTableOne
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.