[R] Error en makebin(data, file) : 'sid' invalid
liuguoxiao at made-in-china.com
liuguoxiao at made-in-china.com
Wed Mar 9 03:15:23 CET 2016
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,
> 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"
> 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
[[alternative HTML version deleted]]
More information about the R-help
mailing list