README.md

GMM

License: GPL
v3 GitHub repo
size GitHub code size in
bytes GitHub language
count GitHub top
language

The goal of GMM is to learn how to create an R-package by implementing Gaussian Mixture Model for clustering a dataset.

Note: This RMarkdown is created following the guidelines of this R-package example.

Installation

You can only install the development version from this repository with:

# install.packages("devtools")
devtools::install_github("Prapti-044/GMM")

Example

This is a basic example which shows you how to cluster the iris dataset:

library(GMM)
result <- apply.GMM(as.matrix(iris[,-5]), 3)
str(result)
#> List of 2
#>  $ loglik        : num -740
#>  $ classification: int [1:150] 2 2 2 2 2 3 2 2 2 2 ...
#>  - attr(*, "class")= chr [1:2] "list" "result"


Prapti-044/GMM documentation built on Dec. 18, 2021, 7:48 a.m.