auditR
トランザクション・データを作る
R::Class::TransactionsのHELPに以下のようにある。
## example 4: creating transactions from a data.frame with ## transaction IDs and items a_df3 <- data.frame( TID = c(1,1,2,2,2,3), item=c("a","b","a","b","c", "b") ) a_df3 trans4 <- as(split(a_df3[,"item"], a_df3[,"TID"]), "transactions") trans4 inspect(trans4)
が、この通りにすると、以下のようなエラーになる。
“list” を “transactions” へ強制変換するためのメソッドや既定動作はありません
Last updated 2016-06-07 | auditR (c) N.Nawata