This document is licensed under the DILLIGAS public license, which allows you to freely copy and modify it for any purpose.
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
# options http://goo.gl/2JGwlX | |
Models | |
```{r, eval:TRUE, cache=TRUE, results=asis, warning=FALSE, error=TRUE, message=FALSE, include=FALSE, tidy=TRUE} | |
summary(cars) | |
``` | |
Plots | |
```{r, fig.width=7, fig.height=6} | |
plot(cars) |
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
# this gist contains code extracted straight from http://goo.gl/wvKPH , http://goo.gl/YFhU9 | |
library(devtools) | |
install_github("knitcitations", "cboettig") | |
require(knitcitations) | |
setwd("~/Desktop") | |
#------------------------------------------------------------------------------ | |
# grabbing reference using a DOI (digital object identifier), which is also available through pubmed's xml such as in <ELocationID EIdType="doi" ValidYN="Y">10.1371/journal.pone.0065291</ELocationID> |
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
DO I LOOK LIKE I GIVE A SHIT PUBLIC LICENSE | |
Version 1, July 2013 | |
Copyright (C) 2013 Sam Levy <[email protected]> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO I LOOK LIKE I GIVE A SHIT PUBLIC LICENSE |
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
digraph situated_schema { | |
name [color = red, style = filled] | |
rankdir=LR | |
"name" -> "name2" | |
} |
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
<!DOCTYPE html> | |
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | |
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> | |
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title></title> | |
<meta name="description" content=""> |
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
digraph dot_image { | |
name1 [shape=box, style=filled, fillcolor=white, color=blue, label=<<TABLE border="0" cellborder="0"><TR><TD width="100" height="100" fixedsize="true"><IMG SRC="figure.jpg" scale="true"/></TD><td><font point-size="12">name1</font></td></TR></TABLE>>]; | |
"name1" -> "name2" | |
} |
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
Show hidden characters
{ | |
"cmd": ["open", "-a", "Google Chrome", "$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
# source: http://goo.gl/bgiOgy | |
# Install the RCurl package if necessary | |
#install.packages("RCurl", dependencies = TRUE) | |
library("RCurl") | |
# Install the XML package if necessary | |
#install.packages("XML", dependencies = TRUE) | |
library("XML") | |
# Get first quarter archives |
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
install.packages("ISwR") | |
require("ISwR") | |
x <- rnorm(50) | |
mean(x) | |
sd(x) | |
var(x) | |
median(x) | |
quantile(x) | |
pvec <- seq(0,1,0.1) | |
pvec |