## Data Science Toolset discussion at Data Scientist Summit

May 10, 2011
By

Heads-up to anyone attending the sold-out Data Science Summit in Las Vegas this week: I'll be there tomorrow and Thursday for the conference and to discuss R on the panel discussion "Data Science Toolset - Recipes That Win" (more details about the panel discussion below.) I'm looking forward to meeting with the other R users there -- tweet or...

## Day #38-39 Data-manipulation Part 1

May 10, 2011
By

Last week i created some plots, always for 1 feature. Today I started working on the full script that creates all these plots, 1 per feature. This means, using for loops in R. Let’s see how this is going to work out. Today I mostly worked on data...

May 10, 2011
By

## Problems with plyr — the memory/complexity trade-off

May 10, 2011
By

Two types of R users My overwhelming impression from UseR 2010 is that, generally speaking, there are 2 types of regular R users -- those who have heard and are made uncomfortable by the idea of the *apply() functions, and those who really get it. In ...

## Extending mtable() to ivreg, gls and robust standard errors

May 9, 2011
By

I have written several extensions of the mtable() command in the memisc library that may come in handy. The methods are available in a package I have written called tonymisc (now, available on CRAN). A zipped folder with my package files is available...

## Extending mtable() to ivreg, gls and robust standard errors

May 9, 2011
By

I have written several extensions of the mtable() command in the memisc library that may come in handy. The methods are available in a package I have written called tonymisc (now, available on CRAN). A zipped folder with my package files is available...

## First-Cut Approach to Synchronizing Field Notes with GPS Data

May 9, 2011
By

After a week's worth of work in the field, I typically have several pages of hand-written field notes that are associated with GPS waypoints-- badly in need of some kind of transcription/organization. I have yet to find a simple approach for bringing t...

## Importing Weather Data from Wunderground

May 9, 2011
By

Wunderground Example The Wunderground.com website offers several creative interfaces to current and historic weather information. One of the more interesting features is the URL-based interface to personal weather stations. As far as I can tell, the Wu...

## Registration open for Rmetrics Workshop on Computational Finance

May 9, 2011
By

The Rmetrics Association is once again holding its annual Workshop and Summer School on Computational Finance and Financial Engineering at Meielisalp (on Lake Thune in Switzerland) from June 26-30. Now in its fifth year, the workshop consists of Summer School-like tutorial sessions and a user/developer meeting: Both focus on topics from "Computational Finance and Financial Engineering" and on the...

## Accessing Databases From R

May 9, 2011
By

Jeffrey Breen put together a useful slideshow on accessing databases from R. I use RODBC every single day to access my own local MySQL server from R. I've had trouble with RMySQL, so I've always used RODBC instead after setting up my localhost MySQL se...

## Accessing Databases From R

May 9, 2011
By

Jeffrey Breen put together a useful slideshow on accessing databases from R. I use RODBC every single day to access my own local MySQL server from R. I've had trouble with RMySQL, so I've always used RODBC instead after setting up my localhost MySQL se...

## making meat shares more efficient with R and Symphony

May 9, 2011
By
$making meat shares more efficient with R and Symphony$

In my previous post, I motivated a web application that would allow small-scale sustainable meat producers to sell directly to consumers using a meat share approach, using constrained optimization techniques to maximize utility for everyone involved. In this post, I’ll walk through some R code that I wrote to demonstrate the technique on a small

## Comments on an R Connections API

May 9, 2011
By

I wrote this post months ago but never hit 'Publish'. But, the subject has changed little since then. So, here's to cleaning out the draft folder... R's connections are the heart of data/code/text input and output. Without connections, R would be crippled. Additional connections make R more ... connected with potential data sources and output

## Multiple Y-axis in a R plot

May 9, 2011
By

I often have to to plot multiple time-series with different scale of values for comparative purposes, and although placing them in different rows are useful, placing on a same graph is still useful sometimes...I searched a bit about this, and found som...

## Multiple Y-axis in a R plot

May 9, 2011
By

I often have to to plot multiple time-series with different scale of values for comparative purposes, and although placing them in different rows are useful, placing on a same graph is still useful sometimes...I searched a bit about this, and found som...

## One minor detail for getting 64-bit R-2.13 running with Eclipse/StatET

May 9, 2011
By

Upgrading from R-2.12 to R-2.13 was fairly painless, except for one minor hiccup in trying to get the 64-bit version running on my installation of Eclipse + StatET under Windows 7. The setup instructions are almost entirely the same as I have outlined ...

## Unused function parameters

May 8, 2011
By

I have started redoing the source code measurements that appear in my C book, this time using a lot more source, upgraded versions of existing tools, plus some new tools such as Coccinelle and R. The intent is to make the code and data available in a form that is easy for others to use

## Charting the Defeat of AV using R (and some ggplot2 and merge operations on top)

May 8, 2011
By

In this post, I’ll be graphing some results from a recent referendum held here in the UK and combining it with the results of a set of local elections that were held at the same time. I’ll give some examples of graphing stuff using ggplot2 and will also show some info regarding merging datasets. At

## quantmod makes it easy to watch silver prices crash in R #rstats

May 7, 2011
By

Jeffrey Ryan's quantmod package makes it simple to download and graph pricing data from a variety of sources. A couple of lines of R is all it takes to see that silver has had a very bad week.

## Slides: “Accessing Databases from R” #rstats

May 7, 2011
By

For the past few meetings of the Greater Boston useR Group, we have been opened with an introductory “useR Vignette” talk on a topic which may be helpful for new R users. This week, I presented an overview of accessing databases from R. Several people have tweeted and blogged nice things about my talk and

## Pair-Trading in R – Update

May 7, 2011
By

I found amazing R package in one of posts on R-bloggers website. It's called RcppAmadillo and you can find more info here. The function I am using from this package is called fastLm. Whereas I am interested in special case of Ax = b problem where A and...

## Corresponding

May 7, 2011
By

(The examples here work with the version of insidefunctor tagged as "v2")Unfortunately I couldn't do this cleanly outside the library. So the changes are made in insidefunctor.Levels are no longer used to "line up" eaches. So, for example,> library(insidefunctor)> `%+.%` = fmap(`+`)> `%/.%` = fmap(`/`)> x = c(1,...

## Computing Odds Ratios in R

In my last post, I discussed the use of odds ratios to characterize the association between edibility and binary mushroom characteristics for the mushrooms characterized in the UCI mushroom dataset.  I did not, however, describe those co...

May 7, 2011
By

## %EXPORT_TO_R SAS Macro Code

May 6, 2011
By

The SAS Analysis blog post 'A macro calls R in SAS for paneled 3d plotting' influenced my macro coding.   The following macro call: %EXPORT_TO_R(DATA = YOURDATA)  exports the SAS data set 'YOURDATA' as .csv and produces the R code for se...

## An Intuitive Approach to ROC Curves (with SAS & R)

May 6, 2011
By

I developed the following schematic (with annotations) based on supporting documents (link) from the article cited below. The authors used R for their work. The ROC curve in my schematic was output from PROC LOGISTIC in SAS, the scatterplot with m...

## Cuckoo eggs

May 6, 2011
By

In Tangente n⁰42, there was a dataset about the size of cuckoo eggs against the species (goldcrest and warbler) which built the nest. (The whole dataset from Latter is analysed in Maindonald and Braun’s Data Analysis and Graphics Using R, with a degree of caution about how trustworthy this data is…) This is

## Propagation of the news of OBL’s death via Twitter

May 6, 2011
By

SocialFlow's blog has a great case study today on how news from a single tweet -- in this case, speculation made an hour before the President's announcement that Osama bin Laden had been killed -- can propagate through social networks. At 10:24 p.m. EST on Sunday May 1, Keith Urbahn tweeted: "So I'm told by a reputable person they...