Monthly Archives: July 2014

Insert random NAs in a vector in R

July 30, 2014
By
Insert random NAs in a vector in R

I was recently writing a function which was going to need to deal with NAs in some kind of semi-intelligent way. I wanted to test it with some fake data, meaning that I was going to need a vector with some random NAs sprinkled in. After a few disappointing google searches and a stack overflow

Read more »

Bangalore workshop [ಬೆಂಗಳೂರು ಕಾರ್ಯಾಗಾರ]

July 30, 2014
By
Bangalore workshop [ಬೆಂಗಳೂರು ಕಾರ್ಯಾಗಾರ]

Second day at the Indo-French Centre for Applied Mathematics and the workshop. Maybe not the most exciting day in terms of talks (as I missed the first two plenary sessions by (a) oversleeping and (b) running across the campus!). However I had a neat talk with another conference participant that led to

Read more »

More Readable Code with Pipes in R

July 30, 2014
By
More Readable Code with Pipes in R

Several blog posts have made mention of the 'magrittr' package which allows functional arguments to be passed to functions in a pipes style fashion (David Smith ).This stylistic option has several advantages:  1. Reduced requirements of nested par...

Read more »

Accidental aRt

July 30, 2014
By
Accidental aRt

R is a very powerful language for creating custom data visualizations, but during the development process sometimes you make a mistake and things go horribly wrong. But sometime serendipity intervenes, and the (unintended) result can be quite beautiful. Accidental aRt, if you will. Curated by Kara Woo and Erika Mudrak, this fantastic Tumblr captures beautiful but unintended examples from...

Read more »

drinkR: Estimate your Blood Alcohol Concentration using R and Shiny.

July 30, 2014
By
drinkR: Estimate your Blood Alcohol Concentration using R and Shiny.

Inspired by events that took place at UseR 2014 last month I decided to implement an app that estimates one’s blood alcohol concentration (BAC). Today I present to you drinkR, implemented using R and Shiny, Rstudio’s framework for building web apps using R. So, say that I had a good dinner, drinking a couple of glasses...

Read more »

writing #rstats bindings for bwa-mem, my notebook.

July 30, 2014
By

I wanted to learn how to bind a C library to R, so I've created the following bindings for BWA. My code is available on github at :https://github.com/lindenb/rbwaMost of the C code was inspired from Heng Li's code https://github.com/lh3/bwa/blob/master...

Read more »

Building Interactive Graphs with ggplot2 and Shiny

July 30, 2014
By
Building Interactive Graphs with ggplot2 and Shiny

Some time ago, I was contacted from guys at Packt Publishing. Their just published the Building Interactive Graphs with ggplot2 and Shiny online course and they ask me my (humble) opinion. I am proud of their request, and I will review shortly … Continue reading →

Read more »

“F-bombs” in GitHub Commits (warning: contains profanity)

July 30, 2014
By
“F-bombs” in GitHub Commits (warning: contains profanity)

Warning: this post contains profanity...arguably excessive amounts of it.  If you are a humorless no-fun, you are recommended to proceed no further. Seriously though, the title is quite descriptive of the content of this post.  If you are offended by the use of such language, or if your boss is likely to come peering over your shoulder soon, I...

Read more »

Format Markdown Documents in R

July 29, 2014
By
Format Markdown Documents in R

Have you ever used a markdown file to create an html file? Have you ever wanted to quickly format the subsequent html file to add some color or other aspects? If your answer is yes to both of those questions, this package may be of interest to you. ...

Read more »

Variable Selection in Market Segmentation: Clustering or Biclustering?

July 29, 2014
By
Variable Selection in Market Segmentation: Clustering or Biclustering?

Will you have that segmentation with one or two modes?The data matrix for market segmentation comes to us with two modes, the rows are consumers and the columns are variables. Clustering uses all the columns to transform the two-mode data matrix (row a...

Read more »