View source: R/check_helpers.R
date_to_integer | R Documentation |
This function converts a date-like object (Date, character, factor, or numeric) to an integer representing the number of days since 1970-01-01. It handles various formats and returns NA_integer_ for NA inputs. It is used internally in the package to ensure consistent date handling.
date_to_integer(x)
x |
a date-like object (Date, character, factor, or numeric). |
an integer representing the date in days since 1970-01-01, or NA_integer_ if the input is NA.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.