Skip to content

Commit 8df7732

Browse files
committed
included data dxDat.rda
1 parent b4d0278 commit 8df7732

File tree

5 files changed

+1025
-1003
lines changed

5 files changed

+1025
-1003
lines changed

R/cmbd.R

+4-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@
1818
##' @keywords manipulation
1919
##' @examples
2020
##'
21-
##' data(icd9sample)
22-
##' output <- cmbd(icd9sample)
21+
##' data(dxDat)
22+
##' drg <- dxDat$drg
23+
##' icd <- dxDat[, 2:ncol(dxDat)]
24+
##' output <- cmbd(icd, drg=drg)
2325
##' @importFrom stringr str_trim
2426
##' @export cmbd
2527
cmbd <- function(icd, drg=NULL, needClean=TRUE, needPrep=TRUE) {

R/data.R

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
##' a data frame of diagnosis code with variates named
2+
##' \code{drg} and \code{dx1}, \code{dx2}, ..., \code{dx10},
3+
##' where
4+
##' \itemize{
5+
##' \item \code{drg}: drg code for comorbidity;
6+
##' \item \code{dx1-dx10}: icd-9 code for 10 diagnosises.
7+
##' }
8+
##'
9+
##' @docType data
10+
##' @name dxDat
11+
##' @usage data(dxDat)
12+
##' @format A data frame with 1000 rows and 11 variables.
13+
##' @keywords datasets
14+
##' @references
15+
##' @source ../data/
16+
##' @examples
17+
##' data(dxDat)
18+
##' drg <- dxDat$drg
19+
##' icd <- dxDat[, 2:ncol(dxDat)]
20+
"dxDat"

data/dxDat.rda

21.6 KB
Binary file not shown.

data/icd9sample.rda

-2.29 KB
Binary file not shown.

0 commit comments

Comments
 (0)