SuccessfulDC.Rd
Queries a standardized MDS cohort dataset to identify those who were discharged to community
SuccessfulDC(x, '2018-01-01', '2018-10-01')
x | A dataframe class object, must contain "bene_id_18900", "dmdate", "dmatype", "M3A2100" |
---|---|
.preindex | Date class object of length 1, start window to identify |
.postindex | Date class object of length 1, stop window to identify |
an object of class data.frame, limited to those without discharge to community in window
#> Error: 'mds_cohort' is not an exported object from 'namespace:mdsR'start <- lubridate::ymd('2017-01-01') stop <- lubridate::ymd('2018-01-01') mds_dta2 <- SuccessfulDC(mds_dta, start, stop)#> Error in SuccessfulDC(mds_dta, start, stop): mdsvars %in% names(x) are not all TRUE