Learn R Programming

clustNet (version 1.2.0)

get_classification: get_classification

Description

Classification based on clustering

Usage

get_classification(cluster_results, data_classify)

Value

a list containing the classification as "clustermembership" and the probabilities of belonging to the clusters as "allrelativeprobabs"

Arguments

cluster_results

Output from get_clusters()

data_classify

Data that should be classified; colnames need to match the ones of cluster_results$data; missing cols are allowed

Examples

Run this code
# \donttest{
# choose data
sampled_data <- sampleData(n_vars = 15, n_samples = c(300,300,300))$sampled_data
# learn clusters
cluster_results <- get_clusters(sampled_data)
# visualize the networks
classification_results <- get_classification(cluster_results, sampled_data)
# }

Run the code above in your browser using DataLab