Closed jasperDD closed 6 years ago
The data you show does not look like a valid CSV file. Have a look at ? read.transactions
to learn how to read in files.
Hi, mhahsler, i found decision here trans <- read.transactions("~/Downloads/groceries.csv", format = 'basket', sep = ',') thank you
I must performing association rules in R and i found the example here http://www.salemmarafi.com/code/market-basket-analysis-with-r/ In this example they work with
data(Groceries)
but they gave original dataset Groceries.csvi load this data
so i must convert it to transactions like arule requires
lets' examinate data(Groceries)
and my converted data from original csv
We see that in data(Groceries)
in my trans data
i.e. i got 7011 columns from Groceries.csv, meanwhile in embedded example(169 columns)
Why it is so? How this file convert correct. I must understand it, cause, i can't work with my file