Latest commit to the master branch

updated slides

commit 50fe434303
ben-domingue authored
Txt 100644 26 lines (20 sloc) 0.44 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
fun <- function(dv,iv) lm(dv~iv)
x <- rnorm(1000)
y1 <- 2*x+rnorm(1000)
y2 <- 3*x+rnorm(1000)

seq <- list()
seq[[1]] <- fun(dv=y1,iv=x)
seq[[2]] <- fun(dv=y2,iv=x)

library(foreach)
library(doSMP)
startWorkers(1) -> w
registerDoSMP(w)
foreach (i = list(y1,y2)) %dopar% {
  fun(dv=i,iv=x)
} -> foreach.obj
stopWorkers(w)

library(snow)
makeCluster(2) -> cl
clusterApply(cl,list(y1,y2),fun,iv=x
             ) -> snow.obj
stopCluster(cl)


Markdown Cheat Sheet

Format Text

Headers

# This is an <h1> tag
## This is an <h2> tag
###### This is an <h6> tag

Text styles

*This text will be italic*
_This will also be italic_
**This text will be bold**
__This will also be bold__

*You **can** combine them*

Lists

Unordered

* Item 1
* Item 2
  * Item 2a
  * Item 2b

Ordered

1. Item 1
2. Item 2
3. Item 3
   * Item 3a
   * Item 3b

Miscellaneous

Images

![GitHub Logo](/images/logo.png)
Format: ![Alt Text](url)

Links

http://github.com - automatic!
[GitHub](http://github.com)

Blockquotes

As Kanye West said:

> We're living the future so
> the present is our past.

Code Examples in Markdown

Syntax highlighting with GFM

```javascript
function fancyAlert(arg) {
  if(arg) {
    $.facebox({div:'#foo'})
  }
}
```

Or, indent your code 4 spaces

Here is a Python code example
without syntax highlighting:

    def foo:
      if not bar:
        return true

Inline code for comments

I think you should use an
`<addr>` element here instead.

Something went wrong with that request. Please try again. Dismiss