#' @rdname getEligiblePeriod
#' @export
#'
getEligiblePeriod <- function(dxDataFile, idColName, dateColName){
dxDataFile <- as.data.table(dxDataFile)
DataCol <- c(deparse(substitute(idColName)), deparse(substitute(dateColName)))
dxDataFile <- dxDataFile[,DataCol,with = FALSE]
names(dxDataFile) <- c("ID", "Date")
dxDataFile[,"Date"] <- as.Date(dxDataFile[,Date])
recordDate <- dxDataFile[,list(firstRecordDate = min(Date), endRecordDate = max(Date)),by = "ID"][order(firstRecordDate,endRecordDate),]
recordDate
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.