Skip to content

Instantly share code, notes, and snippets.

View fboehm's full-sized avatar

Frederick Boehm fboehm

View GitHub Profile
@fboehm
fboehm / server.R
Last active August 29, 2015 14:07 — forked from jknowles/server.R
library(shiny)
shinyServer(function(input,output){
output$distPlot<-reactivePlot(function(){
dist<-rnorm(input$obs)
p<-qplot(dist,binwidth=0.1)+geom_vline(xintercept=mean(dist))+theme_dpi()
p<-p+coord_cartesian(xlim=c(-4,4))+geom_vline(xintercept=median(dist),color=I("red"))
print(p)
})
MLE Binomial Shiny App
Base R code created by Gail Potter
Shiny app files created by Gail Potter
@fboehm
fboehm / springer-free-maths-books.md
Created December 29, 2015 01:28 — forked from bishboria/springer-free-maths-books.md
Springer have made a bunch of maths books available for free, here are the direct links
@fboehm
fboehm / word-character-count-Rstudio.md
Last active March 4, 2016 00:28 — forked from Pakillo/word-character-count-Rstudio.md
Count words and characters in Rstudio

As far as I know Rstudio does not count words or characters at the moment, which would be useful particularly when writing Rmarkdown.

This is a quick shortcut using word_count and character_count functions from qdap package. See below for two wrapper functions that simplify their use.

library("qdap")

Just select and copy the text to the clipboard and then run in the console: