dates2features | R Documentation |
Extract features from dates
dates2features(
dates,
features = c("weekday", "month", "year"),
drop.dates = TRUE
)
dates |
Date vector |
features |
Character vector: features to extract |
drop.dates |
Logical: If TRUE, drop original date column |
weekday and month will be extracted as factors, year as integer
data.table with extracted features
EDG
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.