abbreviate {arulesViz}R Documentation

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

Author(s)

Sudheer Chelluboina and Michael Hahsler based on code by Martin Vodenicharov.

Examples

data(Adult)
Adult <- abbreviate(Adult, 9)

[Package arulesViz version 0.1-4 Index]