I've successfully imported my data into R as transactions, but when I try targeting a specific website, I get this error:
Error in asMethod(object) : FACEBOOK.COM is an unknown item label
Is there any reason why this could be happening? Here is a snippet of code:
target.conf80 = apriori(trans,
parameter = list(supp=.002,conf=.8),
appearance = list(default="lhs",rhs = "FACEBOOK.COM"),
control = list(verbose = F))
target.conf80 = sort(target.conf80,decreasing=TRUE,by="confidence")
inspect(target.conf80[1:10])
Thanks!
Here is what the transactions look like:
1 {V1=Google,
V2=Google Web Search,
V3=FACEBOOK.COM} 1
2 {V1=FACEBOOK.COM,
V2=MCAFEE.COM,
V3=7EER.NET,
V4=Google} 2
3 {V1=MCAFEE.COM,