Learn R Programming

arulesSequences (version 0.1-3)

info-methods: Get/Set Object Information

Description

info gets or sets information on the elements of a collection of sequences or sequence rules.

itemInfo gets or sets information on the set of distinct items associated with a collection of sequences.

timeInfo gets or sets information on the event times of a collection of timed sequences.

Usage

## S3 method for class 'sequences':
info(object)

## S4 method for signature 'sequences': info(object) <- value

## S3 method for class 'sequencerules': info(object)

## S4 method for signature 'sequencerules': info(object) <- value

## S3 method for class 'sequences': itemInfo(object)

## S4 method for signature 'sequences': itemInfo(object) <- value

## S3 method for class 'timedsequences': timeInfo(object)

## S4 method for signature 'timedsequences': timeInfo(object) <- value

Arguments

object
an object.
value
a data frame corresponding with the elements or times of object.

Value

  • For method info a data frame of information on and corresponding with the elements of object.

    For method itemInfo a data frame of information on and corresponding with the distinct items of object.

    For method timeInfo a data frame of information on and corresponding with the distinct event times of object.

See Also

Class sequences, timedsequences, sequencerules.

Examples

Run this code
## continue example
example(ruleInduction, package = "arulesSequences")

## empty
info(s2) <- info(s2)
info(r2) <- info(r2)

## item info
itemInfo(s2)


## time info
z <- as(zaki, "timedsequences")
timeInfo(z)

Run the code above in your browser using DataLab