Learn R Programming

mintyr (version 0.1.0)

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

Arguments

Value

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

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

Examples

Run this code
head(fires())

Run the code above in your browser using DataLab