generate.date.features: Generate date features

Description Usage Arguments Value Examples

View source: R/functions.R

Description

Generates features based on columns of date type. Creates year, month and day features both numeric and factor.

Usage

1
generate.date.features(data, date.variables, overwrite = FALSE)

Arguments

data

data frame of interest

date.variables

vector of date variable names

overwrite

let function overwrite already existing variables with the same names

Value

data frame with new generated variables

Examples

1
df <- generate.date.features(df, c('date1','date2'))

konstantin-kotochigov/R_ml_utils documentation built on May 3, 2019, 4:07 p.m.