dates2features: Extract features from dates

View source: R/date_ops.R

dates2featuresR Documentation

Extract features from dates

Description

Extract features from dates

Usage

dates2features(
  dates,
  features = c("weekday", "month", "year"),
  drop.dates = TRUE
)

Arguments

dates

Date vector

features

Character vector: features to extract

drop.dates

Logical: If TRUE, drop original date column

Details

weekday and month will be extracted as factors, year as integer

Value

data.table with extracted features

Author(s)

EDG


egenn/rtemis documentation built on Dec. 17, 2024, 6:16 p.m.