Skip to content

Instantly share code, notes, and snippets.

View rrrlw's full-sized avatar

Raoul rrrlw

  • Cleveland, Ohio
View GitHub Profile
@rrrlw
rrrlw / ICON-rpkg.md
Last active October 28, 2020 22:04
Introduction to the ICON R package, allowing access to 1,075 complex networks.

Setup

To prepare for the vignette, we load the necessary R packages and associated datasets.

# load R packages (both on CRAN)
library(ICON)
library(network)   # for network analysis

library(ggplot2) # for network visualization

@rrrlw
rrrlw / TDA-in-R.md
Last active November 12, 2022 22:28
A short tutorial on conducting topological data analysis in R.

Topological data analysis (TDA) in R

Purpose

Topological data analysis (or TDA) is a growing discipline with great potential. Unfortunately, the difficulty of learning the software used to perform TDA on real datasets is a nontrivial task adds an oft intimidating barrier to entry. This Gist provides a straightforward tutorial to using the TDAstats package to conduct topological data analysis (specifically, persistent homology using Vietoris-Rips simplicial complexes) in R.

N.B. this Gist largely assumes the reader is familiar with a Vietoris-Rips simplicial complex, persistent homology, topological barcodes, and persistence diagrams. Please make sure you have at least a basic understanding of these terms prior to proceeding.