# Monthly Archives: November 2012

## Using R — Calling C Code ‘Hello World!’

November 6, 2012
By

This entry is part 6 of 11 in the series Using ROne of the reasons that R has so much functionality is that people have incorporated a lot of academic code written in C, C++, Fortran and Java into various …   read more ...

Read more »

## Webinar Thursday: How R is used to optimize tractor production at John Deere

November 6, 2012
By

I just sat in on the rehearsal for Thursday's webinar by John Deere's Derek Hoffman, Order Fulfillment Forecasting at John Deere: How R Facilitates Creativity and Flexibility. Derek will give a spirited argument of why R is critical for the faming equipment manufacturer's operations: from forecasting demand for equipment, forecasting crop yields (they produce forecasts for more than half...

Read more »

## 2012-9 Writing grid Extensions

November 6, 2012
By

New hook functions, makeContext() and makeContent(), have been added to the grid graphics package. These functions allow an alternative approach to developing custom grobs when a grob can only decide what to draw at drawing time rather than when the … Continue reading →

Read more »

## rfigshare tutorial

November 6, 2012
By

Recently we at rOpenSci released our rfigshare package up on cran (or you can check out the most up to date version on github. So what’s so great about being able to create figshare articles through R? For some time now I’ve been advocating the use of a workflow that involves documents written in R...

Read more »

## Reverse engineering the SAS data file format

November 6, 2012
By

I think it’s rather marvellous that a few expert coders are working on dispelling the cloud of mystery around the proprietary file format used by SAS software. Essentially, saving your data in a SAS format (with a name like mydata.sas7bdat) … Continue reading →

Read more »

## EPS Market Map in R

November 6, 2012
By

There are a few minor tweaks renaming on this map before it is complete, but I wanted to share the EPS Market Map I put together.  It can be downloaded using this link. This file is meant to be used with R and divides the lower 48 states into the CollegeBoard’s Enrollment Planning Service markets.

Read more »

## ggplot graphs in publications?

November 6, 2012
By

The grey background and/or default choice of colours for groups makes a ggplot graph stand out to any R user when seen in a presentation. But ggplot graphs get all ninja when it comes to publications, either that or not … Continue reading →

Read more »

## Forest plots in R (ggplot) with side table

November 6, 2012
By

A friend asked me to help with a forest plot recently. After chatting about what she wanted the end result to look like, this is what I came up with. grid.arrange(data_table, p, ncol=2) ## Warning: Removed 1 rows containing missing … Continue reading →

Read more »

## analyze the national survey on drug use and health (nsduh) with r

November 6, 2012
By

the national survey on drug use and health (nsduh) monitors illicit drug, alcohol, and tobacco use with more detail than any other survey out there.  if you wanna know the average age at first chewing tobacco dip, the prevalence of needle-sharing,...

Read more »

## Simulating Multiple Asset Paths in R

November 5, 2012
By
$Simulating Multiple Asset Paths in R$

I recently came across the Optimal Rebalancing Strategy Using Dynamic Programming for Institutional Portfolios by W. Sun, A. Fan, L. Chen, T. Schouwenaars, M. Albota paper that examines the cost of different rebablancing methods. For example, one might use calendar rebalancing: i.e. rebalance every month / quarter / year. Or one might use threshold rebalancing:

Read more »