Learn R Programming

mintyr (version 0.1.0)

nedaps: Update Nedap Dataset with Current Date

Description

The nedaps function creates a copy of the Nedap dataset and adjusts the visit times to align with the current date while maintaining the original time patterns.

Usage

nedaps()

Arguments

Value

A data.table with updated visit times, shifted to the current date

Details

The function performs the following operations:

  • Creates a copy of the Nedap dataset from the mintyr package

  • Calculates the number of days between the last recorded visit and the previous day

  • Shifts all visit times forward by the calculated number of days

  • Preserves the original time patterns of the visits

Examples

Run this code
head(nedaps())

Run the code above in your browser using DataLab