我正在尝试捕获数据帧中先验算法的摘要。 基本上,我想在应具有7的列中捕获2的大小,而另一列应具有3的大小,对于4大小应具有33等等。 使用s @ lengths进行了尝试,但这并不能帮助我将其作为数据框使用。
> s =summary(association_rules)
> View(s)
> s
set of 61 rules
rule length distribution (lhs + rhs):sizes
2 3 4
7 33 21
Min. 1st Qu. Median Mean 3rd Qu. Max.
2.00 3.00 3.00 3.23 4.00 4.00
summary of quality measures:
support confidence lift count
Min. :0.0004016 Min. :0.5038 Min. : 3.462 Min. :1291
1st Qu.:0.0004373 1st Qu.:0.5343 1st Qu.: 24.981 1st Qu.:1406
Median :0.0004672 Median :0.5745 Median : 52.934 Median :1502
Mean :0.0005592 Mean :0.5865 Mean :110.400 Mean :1798
3rd Qu.:0.0006573 3rd Qu.:0.6153 3rd Qu.: 92.320 3rd Qu.:2113
Max. :0.0013792 Max. :0.7868 Max. :743.901 Max. :4434
mining info:
data ntransactions support confidence
order_trans 3214874 4e-04 0.5
> s@lengths
sizes
2 3 4
7 33 21