nedaps: Update Nedap Dataset with Current Date

View source: R/nedaps.R

nedapsR Documentation

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()

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

Value

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

Note

  • Requires the data.table and mintyr packages

  • Uses the current system date as a reference for date shifting

  • Maintains the original time of day for each visit

Examples

head(nedaps())

mintyr documentation built on April 4, 2025, 2:56 a.m.