This file contains hidden or 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
| echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list | |
| echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list | |
| apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886 | |
| apt-get update | |
| apt-get install oracle-java7-installer | |
| exit |
This file contains hidden or 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
| git tag archive/<branchname> <branchname> | |
| git branch -d <branchname> | |
| #checkout archived branch | |
| git checkout -b <branchname> archive/<branchname> |
This file contains hidden or 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
| ssh-keygen -t rsa -C "[email protected]" |
This file contains hidden or 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
| git merge --no-commit --no-ff $BRANCH |
This file contains hidden or 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
| git diff <branch>:<dir>/<filename> <branch>:<div>/<filename> |
This file contains hidden or 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
| git config --global credential.helper cache | |
| git config --global credential.helper 'cache --timeout=43200' |
This file contains hidden or 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
| Z = (X - M) /SD | |
| X = raw score | |
| M = Mean | |
| SD = Std. Deviation | |
| Z-Score is 0 for mean | |
| # of std deviations above or below mean |
This file contains hidden or 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
| Variance = SD^2 | |
| SD^2 = [SUM((X-M)^2)]/N | |
| Square the deviation so it doesn't sum to zero | |
| SQRT(SD^2) = SD | |
| SS = SUM of Squares = SUM((X-M)^2 | |
| MS = Mean Squares = [SUM((X-M)^2)]/N |
This file contains hidden or 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
| save.image() # save to .RData | |
| load(".RData") | |
| save.image(file="workspace21.RData") #save data to binary | |
| load("workspace21.RData"); | |
| save.image() | |
| savehistory() #save to .RHistory in current directory | |
| savehistory(file="workspace.RHistory"); #save history to file |
This file contains hidden or 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
| #given timeframe | |
| mean(timeframe$colname) | |
| sd(timeframe$colname) | |
| describe(timeframe) #table of common summary stats | |
| #filtering | |
| describeBy(impact, impact$condition) #split into separate table based on condition | |
| control <- subset(impact, impact[, 2]=="control") #new timeframe filtered by col 2 == "control" | |
| concussed <- subset(impact, impact[, 2]=="concussed") #new timeframe filtered by col 2 == "concussed" |
OlderNewer