Integration of R into wikis - HTML

From SlideWiki

Jump to: navigation, search
|< <<  >> >| 
Integration of R into wikis: About - ZWiki - MediaWiki - Outlook
StatWiki - Raw Output - HTML - Graphics - Interaction - Further plugins
<R output="html" iframe="width:100%;height:250px;">
prob=0.15; nmin=1; nmax=15; x=6
m <-pbinom(rep(0:x, each = nmax-nmin+1), rep(nmin:nmax,x), prob)
dim(m) <- c(nmax-nmin+1,x+1)
m <- t(m)
colnames(m) <- format(nmin:nmax)
rownames(m) <- format(0:x)
outHTML(rhtml, m, title="x\n", format="f", digits=4)
</R>

Personal tools