Tag: date with fastPOSIXct

  • Extract date from datetime in R

    Extract date from datetime in R

    Here are a couple of examples on how to extract date from datetime in R – with the results class of Date or POSIXct. If you have a large dataset, then here is my favorite solution at this moment with the function fastPOSIXct from the fasttime package that can extract date as POSIXct.