I am preparing presentations for the upcoming R workshop. That means I have to find a way to integrate R code and results into my presentations. Now I know there are a number of ways to achieve this, but I like beamer for presentations and R for analysis. Now thanks to Knitr, I can bring... Continue Reading →
World Map Visualizations Based on Data in R
I am working on a workshop for Business Analytics masters students. Part of the demos I intend to use are geographical visualizations. I am using rworldmap package to achieve these. Let us say you have geographical data in a data.frame such as country, with country identifiers stored in "ip_iso2" column in ISO2 format and the... Continue Reading →
Beamer use Tikz to Highlight Certain Parts of Tables
EDIT: I CHANGED THE SERVICE PROVIDER FOR THE BLOG AND THE CODE BLOCK BELOW GOT MESSED UP. ALL SLASHES ARE GONE. BEWARE I did my proposal yesterday and it went well 😀 I used beamer to prepare my slide deck and was very pleased with how easy it was to work with. R already has... Continue Reading →
AWS Educate For Teaching and Research
I was pleasantly surprised to find out that Arizona State University was a member of AWS educate, more so since my year of free trial ran out last month and I just payed my first bill for the Amazon instance I use for data collection. Amazon Web Services provides an easy to deploy, easy to... Continue Reading →
Academic Profile Pages with Markdown Like Syntax
I use markdown in my analysis reports and for my research log. When I was thinking of putting up a more official looking public profile page, I found myself thinking of using markdown to create my profile page on ASU web site. While Markdown is convenient in generating HTML, it is not really suited for... Continue Reading →
Working with Big Data in R
This year has been crazy in terms of data I use for my analysis. Frequently the traditional methods I use in R would fail to allocate enough memory for the task at hand. Luckily, R has great support for such tasks. I will note down a few package names that have served me well lately... Continue Reading →
PLM package is pretty decent for traditional econometric models, yet when it comes to datasets I have to deal with everyday it can be pretty inefficient. If only we had a version of within transformation that would work with multiple clustering variables... Actually, we have it in the form of felm package for R from... Continue Reading →
R and Messy Date Formats in Data
For one of my projects I am using Python scripts to scrape web pages. Unfortunately, the dates in the pages are not in a consistent format. Some are like Jun 19 2014, whereas others are 28-Mar-14, yet others are 2010-Sep-20. The trickiest ones are the ones like Jun-10. Thanks to plannapus in stack overflow I... Continue Reading →
Writing Smell Detector for LaTeX
I have been using Linux as my main system for years. One thing I have always felt the lack of was the Word's grammar checking facilities. Especially when writing in LaTeX, I have often felt the lack of an automated system to catch the most common errors. Thanks to John Horton from MIT, now we... Continue Reading →