View source: R/featureEngineering.R
This is used for the extractDateFeatures default function for retrieving the part of day. This is currently using a user-specified time range. Can be modified and substituted for use in the extractDateFeatures if required.
1 |
It will assume the following mapping: 5am -< 12pm Morning 12pm -< 5pm Afternoon 5pm -< 9pm Evening 9pm -< 5am Night @param date A date containing a vector of dates to compute the part of day for. @return The part of day associated to each date (Morning, Afternoon, Evening or Night). @examples getPartOfDayFromDate(Sys.Date()) @export
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.