451 search results for "knitr"

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 »

sjPlot: New options for creating beautiful tables, documentation on #RPubs #rstats

April 22, 2014
By
sjPlot: New options for creating beautiful tables, documentation on #RPubs #rstats

A new update of my sjPlot package was just released on CRAN. This release focused on improving existing functions and bug fixes again. Especially the table output functions (see my previous blog posts on table output functions here and here) improved a lot. Tables now have more and better possibilities for style customization and knitr

Read more »

Simple mortgage calculator

April 22, 2014
By
Simple mortgage calculator

Have you ever thought of borrowing some money? A common case is when you have to borrow money for buying a house, which is called a mortgage. Wikipedia ('Mortgage loan' entry) goes into much more detail about the definition than what I'll cover. One o...

Read more »

Fracking and House Prices on the Marcellus Shale

April 21, 2014
By
Fracking and House Prices on the Marcellus Shale

Starting last summer I worked on a short project that set out to estimate the potential costs of externalities due to unconventional shale gas production in the Marcellus shale on local house prices using a dataset of roughly 150,000 recently sold houses in Ohio, West Virginia and Pennsylvania. I stopped working on a project that

Read more »