December 2009

Sweave in TeXShop

December 21, 2009 | Stewart MacArthur

I love using TeXShop for GUI editing of LaTeX and particularly Sweave documents, but it is a pain not being able to get it to automatically generate the pdf output. Luckily I found this post which explains how to add a Sweave engine.Basically, make a f... [Read more...]

Rcpp and inline example

December 20, 2009 | Thinking inside the box

Following up on yesterday's Rcpp 0.7.0 release, here is a quick example of why the new feastures can be so useful. The following R code defines a character variable gslrng. This variable contains a short C++ code segment, which is then transformed by the function cfunction into a function of two ... [Read more...]

got R? get social science for R!

December 19, 2009 | Tal Yarkoni

Drew Conway has a great list of 10 must-have R packages for social scientists. If you’re a social scientist (or really, any kind of scientist) who doesn’t use R, now is a great time to dive in and learn; there are tons of tutorials and guides out there (my ... [Read more...]

Rcpp 0.7.0

December 19, 2009 | Thinking inside the box

A new release of Rcpp awaits inclusion on CRAN and has also been sent as a .deb to Debian. It will hit mirrors over the next few days, in the meantime you can get it here as well. This release has a couple new features : inline support: the cf... [Read more...]

Because it’s Friday: The decline of empires

December 18, 2009 | David Smith

Here's a neat visualization of the decline of the British, Spanish, Portugese and French empires from 1800 to present day. It's definitely more art than stats -- judging by the relative size of India and Australia I think the circles are scaled to area, not population -- but it definitely does ... [Read more...]

Using Complex Numbers in R

December 18, 2009 | John Myles White

This post is a continuation of my series dealing with matrix operations for image processing. My next goal is to demonstrate the construction of simple low-pass and high-pass spatial frequency filters in R. It’s easy enough to construct simple versions of these filters in R using the Fast Fourier ... [Read more...]

The unmarried parenthood rate in Mexico

December 18, 2009 | Diego

Using data from the INEGI I calculated the percentage of births who were born outside of marriage in Mexico and compared it to the Hispanic rate in the US. They are basically the same. There’s been a gigantic increase that’s slouching towards 50% a... [Read more...]

Plot ROC curve and lift chart in R

December 18, 2009 | heuristicandrew

This tutorial with real R code demonstrates how to create a predictive model using cforest (Breiman’s random forests) from the package party, evaluate the predictive model on a separate set of data, and then plot the performance using ROC curves ... [Read more...]

Joining data frames in R

December 17, 2009 | Chris

Want to join two R data frames on a common key? Here's one way do a SQL database style join operation in R.We start with a data frame describing probes on a microarray. The key is the probe_id and the rest of the information describes the location on ...
[Read more...]

Image Compression with the SVD in R

December 17, 2009 | John Myles White

Over the next few posts, I’m going to be reviewing the use of R to implement the most commonly used matrix techniques for image manipulation. The code will be surprisingly simple to understand, because the real magic behind these techniques lies in the mathematics that R provides an abstract ... [Read more...]

R Blogs

December 17, 2009 | Ralph

There are many blogs on Statistics, R and other related topics scattered around the internet. The R bloggers website provides a central hub where feeds from participating blogs are collated so that they can be viewed from a single website. This resources certainly appears to be a good idea so ... [Read more...]

Why use plyr?

December 17, 2009 | David Smith

The "apply" family of functions in R (apply, sapply, lapply) is a very powerful suite of tools for iterating through structures of data and returning the combined results of each iteration. But with great power comes great responsibility (or something like that): these functions can sometimes be frustratingly difficult to ... [Read more...]

Data Profiling in R

December 17, 2009 | learnr

In 2006 UserR conference Jim Porzak gave a presentation on data profiling with R. He showed how to draw summary panels of the data using a combination of grid and base graphics. Unfortunately the code has not (yet) been released as a package, so when I recently needed to quickly review ... [Read more...]

Quick Review of Matrix Algebra in R

December 16, 2009 | John Myles White

Lately, I’ve been running a series of fMRI experiments on visual perception. In the interests of understanding the underlying properties of the images I’m using as stimuli, I’ve been trying to learn more about the matrix transformations commonly used for image compression and image manipulation. Thankfully, R ... [Read more...]

According to Microsoft, the fourth paradigm of science is data

December 16, 2009 | David Smith

In scientific discovery, the first three paradigms were experimental, theoretical and (more recently) computational science. A new book of essays published by Microsoft (and available for free download -- kudos, MS!) argues that a fourth paradigm of scientific discovery is at hand: the analysis of massive data sets. The book ... [Read more...]

NCEP Global Forecast System

December 16, 2009 | joe

Just about everyone is familiar with weather maps. There are many situations where it is useful to combine the underlying numerical weather data with other types of information. Accessing  the weather data is a necessary first step. The output from the U.S. National Centers for Environmental Prediction (NCEP) Global  ... [Read more...]

email yourself when a script or a job is done

December 15, 2009 | Vinh Nguyen

i usually run long simulations in R on a remote server. i’ve read an article on linux journal about emailing yourself after something happens…i forgot. since my jobs are long, and i usually have to run multiple jobs sequentially, it’d be nice to look at my results ... [Read more...]
1 2 3 4 5 7

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)