toEdges: convert rule data.frame to input for graph.data.frame (with...

Description Usage Arguments Value Examples

View source: R/toEdges.R

Description

convert rule data.frame to input for graph.data.frame (with from and to colmn).

Usage

1
toEdges(rules.data.frame, sep = ",")

Arguments

rules.data.frame

an object of inspectDf, or data.frame with LHS & RHS colmn.

sep

string to separate items from rule string.

Value

a data frame with from and to colmn for graph.data.frame inputs.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
data(Groceries)

pars <- list(confidence=0.01, support=0.01, maxlen=5, minlen=2)
glo.apriori <- apriori(Groceries, parameter = pars)

glo.inspectDF  <- inspectDF(glo.apriori)
glo.inspectDF %>% head

#' glo.inspectDF %>% toEdges %>% head

## End(Not run)

katokohaku/inspectDF documentation built on May 23, 2019, 8:51 a.m.