checkBinaryPrescriptionFormat: Checks the format of the data set for the prescriptions...

View source: R/helperFunctions.R

checkBinaryPrescriptionFormatR Documentation

Checks the format of the data set for the prescriptions (without DDDs)

Description

We need an ID, date column and ATC. The date column has to be of class Date.

Usage

checkBinaryPrescriptionFormat(
  df,
  idColumn = "PATIENT",
  dateColumn = "VISIT",
  atcColumn = "ATC"
)

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

atcColumn

name of the ATC column: default is ATC

Value

NULL if there are format problems, otherwise a data frame that has a PATIENT, VISIT, ATC


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