recently I began to use the package
"arulesSequences" but the algorithm cspade give me this error:
Error en makebin(data, file) : 'sid' invalid
when I did executed this script,
▾ Quoted text (1 line)
data<-read.table("E:/zaki.txt",header=TRUE,sep=',')
data :
"seqid","eventid","page"
"1","1","2211"
"1","2","2488"
"1","3","2239"
"2","1","2240"
"2","2","2488"
"2","3","231"
"2","4","2461"
▾ Quoted text (9 lines)
page<-factor(data$page)
seqid<-as.integer(data$seqid)
eventid<-as.integer(data$eventid)
data<-data.frame(page=page)
data.tran<-as(data,"transactions")
transactionInfo(data.tran)$sequenceID<-seqid
transactionInfo(data.tran)$eventID<-eventid
transactionInfo(data.tran)
result<cspade(data.tran,parameter=list(support=0,maxlen=2),control=list(verbose=TRUE))
??
preprocessing ...Error in makebin(data, file) : 'eid' invalid (strict order)
????????????????????
Focus Technology Co., Ltd.
MIC?????? ?????? ??????
===============================
??????025-66677777-7505
??????liuguoxiao at made-in-china.com
Message-ID:
<2016030910152318778134@made-in-china.com>