checkBlockFormat: Checks the format of the data set for the time block building

View source: R/helperFunctions.R

checkBlockFormatR Documentation

Checks the format of the data set for the time block building

Description

We need an ID, data and a date column. the date column has to be of class Date.

Usage

checkBlockFormat(
  df,
  idColumn = "PATIENT",
  dateColumn = "VISIT",
  dataColumn = "MEASURE"
)

Arguments

df

the data frame to check

idColumn

name of ID column: default is PATIENT

dateColumn

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

dataColumn

name of the data column: default is MEASURE

Value

NULL if there are format problems, otherwise a data frame that has a PATIENT, VISIT and MEASURE column


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