[R] converting a class dataframe (chars) to transaction class

2016-03-25 Thread Santanu Mukherjee
Running R backend MySQL - ran a query <- Query the resulting dataframe contains 2 columns and both are chars. Need to change the dataframe class to transaction class as I need to run Apriori algorithm how to do that? Thanks Santanu [[alternative HTML version deleted]] __

[R] R related issue

2016-03-10 Thread Santanu Mukherjee
Hi, I have R and MySQL at the backend. I have used dbGetQuery to get the rows I want and put it in a data.frame rs2. Now I want to use that data.frame to do market basket using apriori it is giving me errors Error in asMethod(object) : column(s) 1, 2 not logical or a factor. Discretize the columns