fact_to_int: Convert factor variables into integers

Description Usage Arguments Value

View source: R/utils.R

Description

Because xgboost, at least the way I used it, does not work with non-numerical data fact_to_int converts factors to integers. This function was more important when I thought inclusion of interactions, e.g. hour x weekend/weekday, would help performance. It turned out not to be the case.

Usage

1

Arguments

dt

a data table possibly containing factors variables

Value

the data table with any factors converted in integers


tvwallace/gefcom17Model documentation built on Jan. 23, 2021, 12:48 a.m.