tidymodelsでOne-hot Encodingする

きぬいとさんがtidyverseでOne-hot Encodingしているのを見ましたが、餅は餅屋でtidymodelsもいいよねという話。 RでOne-hot Encodingをする with tidyverse