nedaps {mintyr} | R 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
andmintyr
packagesUses the current system date as a reference for date shifting
Maintains the original time of day for each visit
Examples
head(nedaps())
[Package mintyr version 0.1.0 Index]