50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

arulesViz (version 1.0-3)

abbreviate: Abbreviate function for item labels in transactions, itemMatrix and rules

Description

Methods to abbreviate long item labels in transactions and rules.

Usage

## 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")

Arguments

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

Examples

Run this code
data(Adult)
Adult <- abbreviate(Adult, 9)

Run the code above in your browser using DataLab