Skip to content
R package with convenience functions for building models
R
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
R
man
.Rbuildignore
.gitignore
DESCRIPTION
NAMESPACE
README.md
modeltoolbox.Rproj

README.md

modeltoolbox

R build status

This package contains support or convenience functions for modelling in R. Since the functions for this package originated from taking functions from a diverse range of modelling tasks/projects, these functions are not specific to particular types of models.


Installation

modeltoolbox is not released on CRAN (yet). You can install the latest development version from GitHub with:

install.packages("devtools")
devtools::install_github("martinctc/modeltoolbox")

Example

The run_hclust() function allows you to run hierarchical clustering straight from a tibble:

library(modeltoolbox)
library(tidyverse)

iris %>%
  select(-Species) %>%
  run_hclust(method = "complete", dmeth = "euclidean")

The function then returns a hclust object:

Call:
hclust(d = dist(x, method = dmeth), method = method)

Cluster method   : complete 
Distance         : euclidean 
Number of objects: 150 

This package is currently still under development, so it does come with a health warning: if you do wish to use them - have a check and run through the examples before assimilating them into your analysis.


Other packages

Also check out my website for my other work and packages.

You can’t perform that action at this time.