R programming language resources › Forums › Data manipulation › convert categorical to dummy binary valuesTagged: binary, binary dummy, categorical, numericThis topic has 0 replies, 1 voice, and was last updated 11 years, 2 months ago by esra.Viewing 1 post (of 1 total)AuthorPosts March 4, 2014 at 3:44 pm #1041 esraMemberHi, I have the following column from a dataset: Vehicle Car Car Car Plane Plane Bus Train Train BusThus we have 4 different values: Bus, Car, Plane, Train. I want to convert these to binary values automatically and get the following output: Vehicle 0 1 0 0 0 1 0 0 0 1 0 0 0 0 1 0 0 0 1 0 1 0 0 0 0 0 0 1 0 0 0 1 1 0 0 0How can I get this? (is there a way to do this?) Thank you very much!AuthorPostsViewing 1 post (of 1 total)You must be logged in to reply to this topic.Log In Username: Password: Keep me signed in Log In