我正在处理POS数据,而且由于我的数据太大而导致错误。我有835,000行我试图进入交易表单以使用arules包中的apriori算法。
这就是我正在尝试的:
transactions = as(split(first2$Product_Desc,f=first2$Rtl_Id),"transactions")
出现此错误:
Error: cannot allocate vector of size 45.7 Gb
In addition: Warning messages:
1: In unique(.Internal(unlist(lapply(x, levels), recursive, FALSE))) :
Reached total allocation of 8103Mb: see help(memory.size)
2: In unique(.Internal(unlist(lapply(x, levels), recursive, FALSE))) :
Reached total allocation of 8103Mb: see help(memory.size)
3: In unique(.Internal(unlist(lapply(x, levels), recursive, FALSE))) :
Reached total allocation of 8103Mb: see help(memory.size)
4: In unique(.Internal(unlist(lapply(x, levels), recursive, FALSE))) :
Reached total allocation of 8103Mb: see help(memory.size)
我该如何做到这一点?