checkBaselineHospitalFormat: Checks the format of the hospital data

View source: R/helperFunctions.R

checkBaselineHospitalFormatR Documentation

Checks the format of the hospital data

Description

We need an ID and two date columns. The date columns have to be of class Date.

Usage

checkBaselineHospitalFormat(
  df,
  idColumn = "PATIENT",
  startDateColumn = "VISIT_START",
  endDateColumn = "VISIT_END"
)

Arguments

df

the data frame to check

idColumn

name of ID column: default is PATIENT

startDateColumn

name of date column: default is VISIT_START. This column has to be of class Date

endDateColumn

name of date column: default is VISIT_END. This column has to be of class Date

Value

NULL if there are format problems, otherwise a data frame that has a PATIENT andVISIT column


smm52/timeBlocks documentation built on Nov. 27, 2022, 3:54 a.m.