2

this is the dataset that I have

enter image description here

I'd like to transform the data to transaction using

trans<- as(data, "transactions")

and all data columns go into one column

I tried this below codes and doesn't work

trans<- as(data$Finding.Labels, "transactions")

I wnat to transform it like this way.

enter image description here

How can I do?

Thanks!!!

Nicolás Alarcón Rapela
  • 2,714
  • 1
  • 18
  • 29
  • 1
    Try here: https://stackoverflow.com/questions/17313450/how-to-convert-data-frame-to-transactions-for-arules – NelsonGon Jan 30 '19 at 08:45

0 Answers0