0

I want to convert a set of categorical values to binary in R. The number of variables may not be fixed. An Example of my requirement

I am able to convert it into numeric values using the function "as.numeric". Dont know how to proceed further. Please Help

My final output should look something like this

It is for XGBoost

Thanks in Advance.

A Newbie Here

challa420
  • 260
  • 1
  • 12

0 Answers0