This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = "\"") | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Homework 3 | |
Install dependencies | |
```{r} | |
#install.packages("plyr", dependencies = TRUE) | |
library(plyr) | |
#install.packages("xtable", dependencies = TRUE) | |
library(xtable) | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stat545a-2013-hw04_woollard-geo | |
================================ | |
--- | |
```{r, echo=FALSE} | |
library(plyr) | |
library(xtable) | |
library(lattice) | |
#install.packages("reshape", dependencies=TRUE) | |
library(reshape) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Homebrew build logs for tcl-tk on macOS 10.11.6 | |
Build date: 2016-11-07 09:23:18 |