# Monthly Archives: September 2009

## MATLAB style stem plot with R

September 10, 2009
By

Recently I wanted to plot an impulse response function with R and missed the MATLAB style stem plot for doing it. I couldn't find an R function for it with a quick Google search so I made my own. So here is the function and a small example: #The function stem <- function(x,y,pch=16,linecol=1,clinecol=1,...){ if (missing(y)){ y = x ...

## MATLAB style stem plot with R

September 10, 2009
By

Recently I wanted to plot an impulse response function with R and missed the MATLAB style stem plot for doing it. I couldn't find an R function for it with a quick Google search so I made my own. So here is the function and a small example: #The function stem <- function(x,y,pch=16,linecol=1,clinecol=1,...){ if (missing(y)){ y = x ...

## Aggregating SSURGO Data in R

September 10, 2009
By

Premise SSURGO is a digital, high-resolution (1:24,000), soil survey database produced by the USDA-NRCS. It is one of the largest and most complete spatial databases in the world; and is available for nearly the entire USA at no cost. These data are distributed as a combination of geographic and text data, representing soil map units and their...

## Machine Learning in R

September 10, 2009
By

Revolutions blog recently posted a link to R code by Joshua Reich with self-contained examples of using machine learning techniques in R, including various clustering methods (k-means, nearest neighbor, and kernel), recursive partitioning (CART), principle components analysis, linear discriminant analysis, and support vector machines.  This post also links to some slides that go over the basics

## brew: Creating Repetitive Reports

September 9, 2009
By

United Nations report World Population Prospects: The 2008 Revision (highlights available here) provides data about the historical and forecasted population of the country. In exploring the future and past population trends it is relatively easy to subset the dataset by your selected variable. > file <- c("UNdata_Population.csv") > population <- read.csv(file) > names(population) <- c("code", "country", "year", +

## search the graph gallery from R

September 8, 2009
By

pre{ font-size:xx-small !important ; border: 1px black solid; } This is a short code snippet that is motivated by this thread on r-help yesterday. The gallery contains a search engine textbox (top-right) that can be used to search for content i...

## new R package : ant

September 8, 2009
By

The ant package has been released to CRAN yesterday. As discussed in previous posts in this blog (here and here), the ant R package provides an R-aware version of the ant build tool from the apache project. The package contains an R script that c...

## Comparison between 15 different cities…

September 6, 2009
By

The other day I was thinking about how expensive will it be to live in London (as I'm going to live in London for almost one year), and also thinking about how expensive are the cities where some of my best friends live and I got a report by UBS called "Prices and Earnings 2009", it's all...

## Comparison between 15 different cities…

September 6, 2009
By

The other day I was thinking about how expensive will it be to live in London (as I'm going to live in London for almost one year), and also thinking about how expensive are the cities where some of my best friends live and I got a report by UBS called "Prices and Earnings 2009", it's all...

## RQuantLib 0.3.0 Windows build snag

September 6, 2009
By

Yesterday's upload of RQuantLib 0.3.0 contained one minor oversight: I had failed to update src/Makefile.win to the new and enlarged set of source files. The proper fix (of using wildcards and implicit rules) was simple, and Uwe Ligges kindly rebuilt...