size | R Documentation |
Provides the generic function size()
and methods to get the size of
each itemset in an itemMatrix or associations. For
example, size()
can be used to get a vector with the number of items in each
transaction.
size(x, ...)
## S4 method for signature 'itemMatrix'
size(x)
## S4 method for signature 'tidLists'
size(x)
## S4 method for signature 'itemsets'
size(x)
## S4 method for signature 'rules'
size(x)
x |
an object. |
... |
further (unused) arguments. |
returns a numeric vector of length length(x)
.
Each element is the size of the corresponding element (row in the itemMatrix) in
object x
. For rules, size()
returns the sum of the number of
items in the LHS and the RHS.
Michael Hahsler
Other itemMatrix and transactions functions:
abbreviate()
,
c()
,
crossTable()
,
duplicated()
,
extract
,
hierarchy
,
image()
,
inspect()
,
is.superset()
,
itemFrequency()
,
itemFrequencyPlot()
,
itemMatrix-class
,
match()
,
merge()
,
random.transactions()
,
sample()
,
sets
,
supportingTransactions()
,
tidLists-class
,
transactions-class
,
unique()
Other associations functions:
abbreviate()
,
associations-class
,
c()
,
duplicated()
,
extract
,
inspect()
,
is.closed()
,
is.generator()
,
is.maximal()
,
is.redundant()
,
is.significant()
,
is.superset()
,
itemsets-class
,
match()
,
rules-class
,
sample()
,
sets
,
sort()
,
unique()
data("Adult")
summary(size(Adult))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.