hardhat 0.1.4
-
Setting
indicators = "none"indefault_formula_blueprint()no longer
accidentally expands character columns into dummy variable columns. They
are now left completely untouched and pass through as characters. When
indicators = "traditional"orindicators = "one_hot", character columns
are treated as unordered factors (#139). -
The
indicatorsargument ofdefault_formula_blueprint()now takes character
input rather than logical. To update:indicators = TRUE -> indicators = "traditional" indicators = FALSE -> indicators = "none"Logical input for
indicatorswill continue to work, with a warning, until
hardhat 0.1.6, where it will be formally deprecated.There is also a new
indicators = "one_hot"option which expands all factor
columns intoKdummy variable columns corresponding to theKlevels of
that factor, rather than the more traditionalK - 1expansion.