How To Perform One Hot Encoding In R 0

How To Perform One Hot Encoding In R