I have a dataset with 10 columns and 100,000 rows. I have a column (let's name it "column_A") that contains text, separated by commas: "motor, student, type_C" etc.
I want to split this column and make each element as the name of a column: So it will add the columns "motor", "student", "type_C" to my dataset in order to fill these new columns with other values.
Actually I have splitted the character, but I don't know how to make these as new columns
strsplit(as.character(trimws(data$column_A)),",")
thanks for your help!