viewRules: View rules in IF-THEN form.

Description Usage Arguments Value Author(s) Examples

View source: R/viewRules.R

Description

Display rules in the IF-THEN form. Prints the basic rule statistics.

Usage

1
viewRules(rules, setLabels=FALSE, labels=c("down","nochange", "up"))

Arguments

rules

A data frame of rule table in a form of rosetta $main output.

setLabels

Logical. If TRUE the new discretization labels can be applied. Default is FALSE.

labels

A character vector. New label names for replacing discretization states.

Value

output

A data frame containing IF-THEN rules and statistics: rule length, RHS accuracy, RHS support, and rule p-value from hypergeometric distribution.

Author(s)

Mateusz Garbulowski

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(R.ROSETTA)
set.seed(1)

out <- rosetta(autcon)
rules <- out$main

IfThenRules <- viewRules(rules)

#change 1,2,3 gene levels into down,nochange,up
IfThenRulesDNU <- viewRules(rules, setLabels=TRUE, labels=c("down","nochange", "up"))

komorowskilab/R.ROSETTA documentation built on April 5, 2021, 9:41 a.m.