0

I have data set in which fist row data is with special characters supposed to be the column names, which is in single excel cell, how can I divide those and place it as each column names with R?

Second, third rows data with special characters were supposed to be column values, however placed in rows, how to remove those special characters and replace as column values with R?

Below is the data set for your reference:

Row1:age;"job";"marital";"education";"default";"balance";"housing";"loan";"contact";"day";"month";"duration";"campaign";"pdays";"previous";"poutcome";"y"
Row2:58;"management";"married";"tertiary";"no";2143;"yes";"no";"unknown";5;"may";261;1;-1;0;"unknown";"no"
Row3:44;"technician";"single";"secondary";"no";29;"yes";"no";"unknown";5;"may";151;1;-1;0;"unknown";"no"
Row4:33;"entrepreneur";"married";"secondary";"no";2;"yes";"yes";"unknown";5;"may";76;1;-1;0;"unknown";"no"
.
.
.
.

In total, I have 45,212 rows .

zx8754
  • 52,746
  • 12
  • 114
  • 209

0 Answers0