Articles by Abraham Mathew

Best Practices for Code Review: R Edition

July 5, 2020 | Abraham Mathew

A. What is Code Review? Code reviews are traditionally done in the context of a software development team that is building out a new product or feature. The goal is to ensure that anything added to the common code base is free of bugs, follows established coding conventions, and is ...
[Read more...]

Logging in R: Why, When, and How

June 15, 2020 | Abraham Mathew

Anyone who is writing R code should get familiar with logging. While it may not be useful for writing exploratory scripts or doing basic coding projects, logging can be critical when doing development work as it helps track what your code is doing. In this post, I will provide some ... [Read more...]

User Input in R vs Python

April 18, 2012 | Abraham Mathew

Both R and Python have facilities where the coder can write a script which requests a user to input some information. In Python 2.6, the main function for this task is raw_input (in Python 3.0, it’s input()). In R, there are a series of functions that can be used to ... [Read more...]

Analyzing Twitter Data in R – Part 1

February 8, 2012 | Abraham Mathew

I recently began using the TwitteR package in R to examine my tweeting patterns. One of my first projects was to identify each of my Twitter followers, where they were located, how many tweets they had, and then plot their location on a map using a bubble which was related ... [Read more...]

Job Satisfaction in England – GGPlot #2

November 29, 2011 | Abraham Mathew

I’ve recently been scouring the internet for a public opinion data set pertaining to job satisfaction. I was particularly interested in examining how gender, age, and socio-economic status influence how satisfied an individual is with their current employment situation. For example, existing research suggests that women and private-sector employees ... [Read more...]

A/B Testing in R – Part 1

November 29, 2011 | Abraham Mathew

A/B testing is a method for comparing the effectiveness of several different variations of a web page. For example, an online clothing retailer that specializes in mens’ streetwear may want to examine whether a black or pink background results in more purchases from visitors to the site. Lets say ... [Read more...]

R 101: The Subset Function

November 9, 2011 | Abraham Mathew

The subset function is available in base R and can be used to return subsets of a vector, martix, or data frame which meet a particular condition. In my three years of using R, I have repeatedly used the subset() function and believe that it is the most useful tool ... [Read more...]

Generating PPC Keywords in R – Part 2

November 4, 2011 | Abraham Mathew

In a previous post, I discussed how to generate PPC keywords in R. In this post I will provide another example of how to perform this task. Let’s say that I am a auto insurance company that only operates in the state of Illinois. I’m planing on bidding ... [Read more...]

Generating PPC Keywords in R

November 1, 2011 | Abraham Mathew

Paid search marketing refers to the process of driving traffic to a website by purchasing ads on search engines. Advertisers bid on certain keywords that users might search for, and that determines when and where their ads appear. For example, an individual who owns an auto dealership would want to ... [Read more...]

Shoe Consumption in the U.S. – GGPlot2 #1

October 26, 2011 | Abraham Mathew

  This is the first in a series of blog posts in which I use the R package GGPlot2 to examine real world data. In this post, I construct a line graph of U.S. shoe consumption from 1995 to 2007. A recent survey conducted by Shop Smart magazine found that the average ... [Read more...]

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)