fires {mintyr} | R Documentation |
Update Fire Dataset with Current Date
Description
The fires
function creates a copy of the fire dataset and adjusts the dates
to align with the current date while maintaining the original date patterns.
Usage
fires()
Details
The function performs the following operations:
Creates a copy of the fire dataset from the mintyr package
Calculates the number of days between the last recorded date and the previous day
Shifts all dates forward by the calculated number of days
Converts the updated dates back to character format
Value
A data.table with updated dates, 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 structure of the date column
Examples
head(fires())
[Package mintyr version 0.1.0 Index]