Description Usage Arguments Value Author(s) See Also Examples

Provides the generic function `size`

and S4 methods to get the size of
each element from objects based on `itemMatrix`

. For
example, it is used to get a vector of transaction sizes (i.e., the number of
present items (ones) per element (row) of the binary incidence matrix) from
an object of class `transactions`

).

1 |

`x` |
an object. |

`...` |
further (unused) arguments. |

`size`

returns a numeric vector of length `length(x)`

. Each
element is the size of the corresponding element (row in the matrix) in
object `x`

. For rules, `size`

returns the sum of the number of
elements in the LHS and the RHS.

Michael Hahsler

`itemMatrix-class`

,
`transactions-class`

1 2 |

```
Loading required package: Matrix
Attaching package: 'arules'
The following objects are masked from 'package:base':
abbreviate, write
Min. 1st Qu. Median Mean 3rd Qu. Max.
9.00 12.00 13.00 12.53 13.00 13.00
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.