fires: Update Fire Dataset with Current Date

View source: R/fires.R

firesR 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 and mintyr packages

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

  • Maintains the original structure of the date column

Examples

head(fires())

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