Skip to content

Instantly share code, notes, and snippets.

View phytomosaic's full-sized avatar

Rob Smith phytomosaic

View GitHub Profile
@phytomosaic
phytomosaic / multivariate_tutorial.R
Last active January 3, 2018 23:45
Tutorial for multivariate statistics
######################################################################
# Multivariate methods tutorial
# Rob Smith, smithr2@oregonstate.edu, Oregon State Univ, 16 Nov 2017
## CC-BY-SA 4.0 License (Creative Commons Attribution-ShareAlike 4.0)
# preamble to load required packages
rm(list=ls())
pkg <- c('vegan','viridis')
has <- pkg %in% rownames(installed.packages())
if(any(!has))install.packages(pkg[!has])