checkVizFormat: Checks the format of the data set quick visualisation

View source: R/visualisations.R

checkVizFormatR Documentation

Checks the format of the data set quick visualisation

Description

Checks the format of the data set quick visualisation

Usage

checkVizFormat(
  df,
  idColumn = "PATIENT",
  blockColumn = "block",
  dataColumn = "measure",
  dateColumn = "date.measure",
  prescriptionColumn = "prescription"
)

Arguments

df

the response data frame. It needs to contain binary prescription information.

idColumn

name of ID column: default is PATIENT

blockColumn

name of the block column: default is block

dataColumn

name of the data column: default is measure

dateColumn

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

prescriptionColumn

name of the prescription column: default is prescription (it has to be binary)

Value

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


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