Learn R Programming

MRReg (version 0.1.5)

PrintOptimalClustersResult: PrintOptimalClustersResult

Description

PrintOptimalClustersResult is a support function for printing the optimal clusters from FindMaxHomoOptimalPartitions function.

Usage

PrintOptimalClustersResult(resObj, selFeature = FALSE)

Value

No return value, called for printing optimal clusters.

Arguments

resObj

is an object list, which is the output of FindMaxHomoOptimalPartitions function

selFeature

is a flag. If it is true, then the function shows the selected feature(s) of each optimal cluster.

Examples

Run this code
# Running FindMaxHomoOptimalPartitions using simulation data
DataT<-SimpleSimulation(100,type=1)
obj<-FindMaxHomoOptimalPartitions(DataT,gamma=0.05)
# Printing the result
PrintOptimalClustersResult(obj)

Run the code above in your browser using DataLab