-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed docs and args to be consistent with CRAN. no feature change
- Loading branch information
kaz-yos
committed
Feb 9, 2014
1 parent
53619f8
commit 0fcfbca
Showing
19 changed files
with
403 additions
and
545 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,14 +3,16 @@ Type: Package | |
Title: Create the "Table 1" to describe baseline characteristics | ||
Version: 0.1.1 | ||
Date: 2014-02-09 | ||
Author: Kazuki Yoshida (based on Deducer by Ian Fellows) | ||
Author: Kazuki Yoshida | ||
Maintainer: Kazuki Yoshida <[email protected]> | ||
Description: For some reasons, there are no good functions to create the "Table | ||
Description: This package creates create the "Table | ||
1", i.e., description of baseline characteristics in R although it is | ||
essential in every medical research. The package was insipired by | ||
descriptive statistics functions in Deducer, Java-based GUI package. This | ||
package does not require GUI or Java, and intended for CUI users. | ||
License: GPL-2 | ||
Depends: | ||
e1071, | ||
gmodels | ||
gmodels, | ||
survival | ||
URL: https://github.com/kaz-yos/tableone |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
exportPattern("^[[:alpha:]]+") | ||
export(CreateCatTable) | ||
export(CreateContTable) | ||
export(ShowRegTable) | ||
export(print.CatTable) | ||
export(print.ContTable) | ||
export(summary.CatTable) | ||
export(summary.ContTable) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
##' Format and print the ‘ContTable’ class objects | ||
##' Format and print the \code{ContTable} class objects | ||
##' | ||
##' This is the print method for the ContTable class objects created by | ||
##' CreateContTable function. | ||
##' | ||
##' | ||
## @usage print.ContTable(ContTable, missing = FALSE, digits = 2, nonnormal = | ||
## NULL, quote = FALSE, test = TRUE, pDigits = 3, explain = TRUE) | ||
##' @param ContTable The result of a call to the ‘CreateContTable’ function. | ||
##' @param x The result of a call to the \code{\link{CreateContTable}} function. | ||
##' @param missing Whether to show missing data information (not implemented | ||
##' yet, placeholder) | ||
##' @param digits Number of digits to print in the table. | ||
|
@@ -21,6 +21,8 @@ | |
##' @param pDigits Number of digits to print for p-values. | ||
##' @param explain Whether to add explanation to the variable names, i.e., | ||
##' (mean (sd) or median [IQR]) is added to the variable names. | ||
##' @param ... Additional arguments. Required for the generic print(x, ...). | ||
This comment has been minimized.
Sorry, something went wrong. |
||
##' (not implemented yet, placeholder) | ||
##' @return It is mainly for printing the result. But this function does return | ||
##' a matrix containing what you see in the output invisibly. You can assign it | ||
##' to an object to save it. | ||
|
@@ -88,12 +90,14 @@ | |
##' print(contTableBySexTrt, nonnormal = nonNormalVars, quote = TRUE) | ||
##' | ||
##' @export print.ContTable | ||
This comment has been minimized.
Sorry, something went wrong.
hadley
|
||
print.ContTable <- function(ContTable, missing = FALSE, | ||
print.ContTable <- function(x, missing = FALSE, | ||
digits = 2, nonnormal = NULL, quote = FALSE, | ||
test = TRUE, pDigits = 3, | ||
explain = TRUE | ||
) { | ||
explain = TRUE, ...) { | ||
|
||
## x and ... required to be consistent with generic print(x, ...) | ||
ContTable <- x | ||
|
||
### Check data structure first | ||
|
||
## ContTable is by() object | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
You should never need to use
@usage
roxygen will generate automatically.