I'm unable to convert my data into cSPADE compatible format.
My data frame looks like-
 key type1 type2 type3 
 A-1  A     B     C
 B-2  P     Q    NA
 C-3  X     NA   NA
When I use, dataset1<- as(dataset, "transactions") and run-
rules<- cspade(dataset1, parameter = list(support = 0.4), control = list(verbose = TRUE))
It throws an error - 
Error in cspade(dataset1, parameter = list(support = 0.4), control = list(verbose = TRUE)) : slot transactionInfo: missing 'sequenceID' or 'eventID'