retail_sorted <- retail[order(retail$customer_code),]
library(plyr)
itemList <- ddply(retail,c("customer_code","date"),
function(df1)paste(df1$article_batch,
collapse = ","))
当我尝试加载它时,它显示“ Error。unique.default(x)中的错误:unique()仅适用于向量”
有人可以帮我吗?。