utils.example: Make an input example for divnn package

View source: R/utils.example-function.R

utils.exampleR Documentation

Make an input example for divnn package

Description

This function create an input example for several function in divnn package.

Usage

utils.example()

Value

output A list of inputs: 1) value, a data frame with rows for instances and columns for features; 2) outcome, a vector of binary integers with the same length as the instances; 3) similarity, a square matrix of numerics containing feature-feature similarity measures; 4) mapping, a matrix of numerics with rows for features and three columns for three dimensions where the features are mapped onto; and 5) ontology, a data frame with rows for ontologies and four columns for source, target, similarity, and relation. In addition, a result of hierarchical clustering is also included for visualization purpose.

Examples


## Create input example
input=utils.example()

## Show output and visualize the ontology by hierarchical clustering
input
plot(input$hierarchy)

herdiantrisufriyana/divnn documentation built on July 30, 2024, 7:47 a.m.