457 search results for "knitr"

Female hurricanes reloaded – another reanalysis of Jung et al.

June 6, 2014
By
Female hurricanes reloaded – another reanalysis of Jung et al.

I have blogged a few days a ago about a study by Kiju Jung that suggested that implicit bias leads people to underestimate the danger of female-named hurricanes. The study used historical data to demonstrate a correlation between femininity and death-toll, and subsequent experiments seemed to show that people indeed estimate hurricanes to be less…

Read more »

A simple workflow for using R with Microsoft Office products

June 5, 2014
By
A simple workflow for using R with Microsoft Office products

The challenge of integrating Microsoft products with R software has been an outstanding issue for several years. Reasons for these issues are complicated and related to fundamental differences in developing proprietary vs open-source products. To date, I don’t believe there has been a satisfactory solution but I present this blog as my attempt to work

Read more »

Shading between two lines – ggplot

June 1, 2014
By
Shading between two lines – ggplot

First one to say geom_ribbon loses. I was plotting some data for a colleague, had two lines (repeated experiment) per person (time on the x axis) facetted by id, I thought it’d be nice to shade the area between the … Continue reading →

Read more »

Tools for Online Teaching

May 30, 2014
By

Last semester (Fall 2014), I organized and taught an interdisciplinary, collaborative class titled Probability for Scientists. Getting 4 separate teachers on the same page was a challenge, but as scientists we're used to communicating over email, and ...

Read more »

hipsteR: Learn what you missed in R as an early adopter

May 30, 2014
By

If you learned R in its early days (say, the early 2000's or even the late 1990's) you may still be using some — ahem — old-fashioned ways to accomplish some tasks better served by newer functions and packages. To help those of us who have may missed some of R's more recent innovations, Karl Broman created hipsteR, a...

Read more »

Customising ProjectTemplate in R

May 28, 2014
By

This post talks about my workflow for getting started with a new data analysis project using the ProjectTemplate package. Overview of ProjectTemplate ProjectTemplate is an R Package which facilitates data analysis, encourages good data analysis habit...

Read more »

PERFORMANCE: captureOutput() is much faster than capture.output()

May 26, 2014
By
PERFORMANCE: captureOutput() is much faster than capture.output()

The R function capture.output() can be used to “collect” the output of functions such as cat() and print() to strings. For example, > s <- capture.output({+ cat("Hello\nworld!\n")+ print(pi)+ })> s "Hello" "world!" " 3.141593" More precisely, it...

Read more »

A Sequence of 9 Courses on Data Science Starts on Coursera on 2 June and 7 July 2014

May 26, 2014
By
A Sequence of 9 Courses on Data Science Starts on Coursera on 2 June and 7 July 2014

A sequence of 9 courses on Data Science will start on Coursera on 2 June and 7 July 2014, to be lectured by(Associate/Assistant) Professors of Johns Hopkins University. The courses are designed for students to learn to become Data Scientists … Continue reading →

Read more »

rOpenHack report

May 13, 2014
By
rOpenHack report

The rOpenSci project is a poster child for the fluid collaboration that has become increasingly common these days thanks to platforms like Twitter and GitHub. It has been really inspring to see open discussions take shape as rough ideas, which rapidly turn into prototype research software, all of which are now happening in the order of few days to...

Read more »

SMART Hackathon: Day 1

May 1, 2014
By
SMART Hackathon: Day 1

So day 1 of the #JHUSMARTHack 2014 is over and day 2 is underway. It's been awesome. One student estimated he did “one week's worth of work”. Some interesting (I think) things I thought about: Flooding rain is good weather for coding. (As long as no sinkholes arise) The Admiral Fell Inn is a pretty

Read more »