Skip to content

Instantly share code, notes, and snippets.

STAT 545A Homework 1
========================================================
My first R Markdown Document. Here's how to make one:
* open RStudio
* select File > New > R Markdown
* paste the R code in the skeleton.
* click Knit HTML to preview the page
* save the HTML locally and / or publish to RPubs
stat545a-2013-hw02_woollard-geo
========================================================
Let's explore the gap minder data. You can find it [here](http://www.stat.ubc.ca/~jenny/notOcto/STAT545A/examples/gapminder/data/gapminderDataFiveYear.txt)
```{r}
library(lattice)
gdURL <- "http://www.stat.ubc.ca/~jenny/notOcto/STAT545A/examples/gapminder/data/gapminderDataFiveYear.txt"
gDat <- read.table(gdURL, header = TRUE, sep = '\t', quote = "\"")
```
# Homework 3
Install dependencies
```{r}
#install.packages("plyr", dependencies = TRUE)
library(plyr)
#install.packages("xtable", dependencies = TRUE)
library(xtable)
```
stat545a-2013-hw04_woollard-geo
================================
---
```{r, echo=FALSE}
library(plyr)
library(xtable)
library(lattice)
#install.packages("reshape", dependencies=TRUE)
library(reshape)
stat545a-2013-hw05_woollard-geo
================================
---
```{r}
library(plyr)
library(mgcv)
library(lattice)
library(ggplot2)
gdURL <- "http://www.stat.ubc.ca/~jenny/notOcto/STAT545A/examples/gapminder/data/gapminderDataFiveYear.txt"
@geoffwoollard
geoffwoollard / spam_classifier.py
Created May 16, 2016 19:57 — forked from anishmashankar/spam_classifier.py
Developing a Naive Bayes Classifier for Spam Detection in Python
#Author: Anish Mashankar
#website: anishm.co
import random
import time
import nltk
from textblob import TextBlob
from nltk.corpus import stopwords
from text.classifiers import NaiveBayesClassifier
def get_list_tuples(read_file):
list_tuples = []
@geoffwoollard
geoffwoollard / # tcl-tk - 2016-11-07_09-23-18.txt
Created June 5, 2017 18:14
tcl-tk on macOS 10.11.6 - Homebrew build logs
Homebrew build logs for tcl-tk on macOS 10.11.6
Build date: 2016-11-07 09:23:18