443 search results for "knitr"

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 »

Three Ways to Format R Code for Blogger

April 30, 2014
By
Three Ways to Format R Code for Blogger

Unformatted CodeIf you are like me originally then you might not think it is worth it to spend the extra energy to format your code.  After all people can just copy what you have and paste it into their preferred editor which will do its own forma...

Read more »

Introducing the pathological package for manipulating paths, files and directories

April 28, 2014
By
Introducing the pathological package for manipulating paths, files and directories

I was recently hunting for a function that will strip the extension from a file – changing foo.png to foo, and so forth. I was knitting a report, and wanted to replace the file extension of the input with the extension of the the output file. (knitr handles this automatically in most cases but I

Read more »

Preventing escaping in HTML

April 24, 2014
By

Preventing escaping in HTML Preventing escaping in HTML library(xtable) ## ## Attaching package: 'xtable'## ## The following objects are masked from 'package:Hmisc':## ## label, label<- library(stringr)library(whisker) Problem statementBeing a novice in R language, the problem I faced maight be a novice one,...

Read more »