abbreviate {arulesViz} | R Documentation |
Methods to abbreviate long item labels in transactions and rules.
## S3 method for class 'transactions' abbreviate(data, minlength = 4, ...,method = "both.sides") ## S3 method for class 'rules' abbreviate(data, minlength = 4, ...,method = "both.sides") ## S3 method for class 'itemMatrix' abbreviate(data, minlength = 4, ...,method = "both.sides")
data |
an object of class "transactions", "itemMatrix" and "rules" |
minlength |
characters allwed in abbreviation |
method |
apply to level and value (both.sides) |
... |
further arguments; currently unused |
Sudheer Chelluboina and Michael Hahsler based on code by Martin Vodenicharov.
data(Adult) Adult <- abbreviate(Adult, 9)