sirus.print: Print SIRUS.

Description Usage Arguments Value Examples

View source: R/sirus.R

Description

Print the list of rules output by SIRUS.

Usage

1
sirus.print(sirus.m, digits = 3)

Arguments

sirus.m

A SIRUS model generated by sirus.fit.

digits

Number of significant digits for numerical values. Default value is 3.

Value

Formatted list of rules.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## load SIRUS
require(sirus)

## prepare data
data <- iris
y <- rep(0, nrow(data))
y[data$Species == 'setosa'] = 1
data$Species <- NULL

## fit SIRUS
sirus.m <- sirus.fit(data, y)

## print sirus model
sirus.print(sirus.m)

sirus documentation built on Feb. 22, 2021, 5:08 p.m.