Skip to content

Instantly share code, notes, and snippets.

View nmatzke's full-sized avatar

Nicholas J. Matzke nmatzke

View GitHub Profile
@nmatzke
nmatzke / num_unobservable_patterns_v2.R
Last active February 2, 2016 14:03
Calculating the number of unobservable site patterns for the Mk-parsimony-informative ascertainment bias correction
#######################################################
# Calculating the number of unobservable site patterns
# for the Mk-parsimony-informative ascertainment bias
# correction
#
# by Nick Matzke, 2015-2016
#
# Free to re-use; we are preparing an ms on this issue,
# please email nick.matzke@anu.edu.au if interested.
#
# =============================================
# genericR_v1.R: many useful utility functions
# for R
#
# by Nick Matzke
# Copyright 2011-infinity
# matzkeATberkeley.edu
# January 2011
#
# Please link/cite if you use this, email me if you have
# Source ALL of the R files in a particular R/ directory
# (so we don't have to have a fully-functioning package)
# Author: Nick Matzke, nmatzke
# License: GPL-3
sourceall_git <- function(repo)
{
library(httr) # for GET
library(devtools) # for source_url