abbreviate: Abbreviate function for item labels in transactions,...

Description Usage Arguments Author(s) Examples

View source: R/abbreviate.R

Description

Methods to abbreviate long item labels in transactions and rules.

Usage

1
2
3
4
5
6
## 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

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

arulesVizOld documentation built on May 2, 2019, 5:56 p.m.