Monthly Archives: June 2013

literacy rates using semantics and R

June 19, 2013
By
literacy rates using semantics and R

(This article was first published on - R, and kindly contributed to R-bloggers) Somehow I stumbled into the world of linked open data trying to pull information easily off of a wikipedia page without having to write a customer scrapper. Enter in dbpedia, semantic technologies and some wonderful R packages take care of the back-end coding. The Research Group...

Read more »

A Toy Instrumental Variable Application

June 19, 2013
By
A Toy Instrumental Variable Application

Draw nicer Classification and Regression Trees with the rpart.plot package

June 19, 2013
By
Draw nicer Classification and Regression Trees with the rpart.plot package

by Joseph Rickert The basic way to plot a classification or regression tree built with R’s rpart() function is just to call plot. However, in general, the results just aren’t pretty. As it turns out, for some time now there has been a better way to plot rpart() trees: the prp() function in Stephen Milborrow’s rpart.plot package. This function...

Read more »

Spatial Overlays with R – Retrieving Polygon Attributes for a Set of Points

June 19, 2013
By

A short tutorial for spatial overlays using R-GIS..library(sp)library(dismo)# spatial dataalt gadm # viewplot(alt)plot(gadm, add=T)# some addressespts # make it spatialcoords spdf_pts # assign CRS/projectionproj4string(spdf_pts) # check datastr(spdf_pts)# plot it on topplot(spdf_pts, cex = 2, col = 2, add = T)# do an intersection (points in polygon)# yielding the polygon's attribute dataover(spdf_pts, gadm)

Read more »

Compiling R 3.0.1 with MKL support

June 19, 2013
By
Compiling R 3.0.1 with MKL support

Before you begin, be aware that there is others excellent posts about the issue, as: 1. Compiling 64-bit R 2.10.1 with MKL in Linux 2. Speeding up R with Intel’s Math Kernel Library (MKL) 3. Performance benefits of linking R to multithreaded math libraries 4. Using MKL-Linked R in Eclipse But, as recently i faced some problems to The post Compiling...

Read more »

Visualizing transitions with the transitionPlot function

June 19, 2013
By
Visualizing transitions with the transitionPlot function

A transition between states - the above is a simulation of before and after surgery where I've highlighted the large proportion that...

Read more »

An R package for Smith-Wilson yield curves

June 19, 2013
By
An R package for Smith-Wilson yield curves

Yield Curve fitting - the Smith-Wilson method Yield Curve fitting - the Smith-Wilson method This article illustrates the R package SmithWilsonYieldCurve, and provides some additional background on yield curve fitting. The method implemented in the package fits a curve to interest rate market...

Read more »

R Plotting Financial Time Series

June 19, 2013
By

In my little world of finance, data almost always is a time series.  Through both quiet iteration and significant revolutions, the volunteers of R have made analyzing and charting time series pleasant.  As a mini-tribute to all those who have...

Read more »

Generating Tables Using Pander, knitr, and Rmarkdown

June 19, 2013
By

Generating Tables Using Pander, knitr, and Rmarkdown I use a pretty common workflow (I think) for producing reports on a day to day basis. I write them in rmarkdown using RStudio, knit them into .html and .md documents using knitr, then convert the resulting .md file to a .docx file using pander, which is really just a way of communicating with Pandoc via my R terminal. This workflow...

Read more »

highlight 0.4.2

June 19, 2013
By

highlight 0.4.2 is on CRAN. This fixes a few bugs reported by users. The main improvement is that we can now use highlight as a vignette engine, using the functionality introduced in R 3.0.0. In the Rcpp universe, we use … Continue reading →

Read more »