March 2013

Webinar tomorrow: 100% R and More

March 13, 2013 | David Smith

A quick note that I'll be hosting our regularly-scheduled webinar, Revolution R Enterprise, 100% R and More, at 10AM Pacific tomorrow. If you're new to R, or want to learn about the power, scalability and productivity features of Revolution R Enterprise, this is a great place to start. Revolution Analytics webinars: ... [Read more...]

New package for ensembling R models

March 13, 2013 | Zachary Mayer

I've written a new R package called caretEnsemble for creating ensembles of caret models in R.  It currently works well for regression models, and I've written some preliminary support for binary classification models. At th...
[Read more...]

R needs some bureaucracy

March 12, 2013 | Derek Jones

Writing a program in R is almost bureaucracy free: variables don’t need to be declared, the language does a reasonable job of guessing the type a value might need to be automatically be converted to, there is no need to create a function having a special name that gets ... [Read more...]

RcppArmadillo 0.3.800.1

March 12, 2013 | Thinking inside the box

Conrad released a first bug-fix release 3.800.1 of Armadillo earlier today. This has been wrapped up in release 0.3.800.1 of RcppArmadillo as usual. This release also contains a very nice function sample() (contributed by Christian Gunning) which p... [Read more...]

A map of worldwide email traffic, created with R

March 12, 2013 | David Smith

The Washing Post reports that by analyzing more than 10 million emails sent through the Yahoo! Mail service in 2012, a team of researchers used the R language to create a map of countries whose citizens email each other most frequently: The chart above shows the top 1000 country-country pairs by email frequency, ... [Read more...]

Distrust of R

March 12, 2013 | John Johnson

I guess I've been living in a bubble for a bit, but apparently there are a lot of people who still mistrust R. I got asked this week why I used R (and, specifically, the package rpart) to generate classification and regression trees instead of SAS Ente... [Read more...]

R to Latex packages: Coverage

March 12, 2013 | Will

There are now quite a few R packages to turn cross-tables and fitted models into nicely formatted latex. In a previous post I showed how to use one of them to display regression tables on the fly. In this post I summarise what types of R object each of the ... [Read more...]

AQP News and Updates

March 12, 2013 | dylan

The AQP family of R packages has seen a lot of development over the last 3 months. Some of the highlights include: HTML manual pages with syntax-highlighting and figures, c/o knitr new vignettes: "dealing with bad data", gridded SSURGO (gSSURGO) demo,... [Read more...]

Job advert

March 12, 2013 | Gianluca Baio

We finally got around to prepare everything we needed to advertise the position which will be available in the MRC grant we've been awarded last year.The project will run for 30 months and we're looking for a post-doctoral candidate to work on the Rese... [Read more...]

reports 0.1.2 Released

March 12, 2013 | tylerrinker

I’m very pleased to announce the release of reports : An R package to assist in the workflow of writing academic articles and other reports. This is the first CRAN release of reports: http://cran.r-project.org/web/packages/reports/index.html The reports package assists in writing … Continue reading →
[Read more...]

How to use optim in R

March 12, 2013 | Markus Gesmann

A friend of mine asked me the other day how she could use the function optim in R to fit data. Of course there are functions for fitting data in R and I wrote about this earlier. However, she wanted to understand how to do this from scratch using optim. ... [Read more...]

Generating a multivariate gaussian distribution using RcppArmadillo

March 12, 2013 | Rcpp Gallery

There are many ways to simulate a multivariate gaussian distribution assuming that you can simulate from independent univariate normal distributions. One of the most popular method is based on the Cholesky decomposition. Let’s see how Rcpp and Armadillo perform on this task.
<span>#include <RcppArmadillo.h></span>
<span>// [[Rcpp::depends(RcppArmadillo)]]</span>

<span>using</span> <span>namespace</span> <span>Rcpp</span><span>;</span>

<span>// [[Rcpp::export]]</span>
<span>arma</span><span>::</span><span>mat</span> <span>mvrnormArma</span><span>(</span><span>int</span> <span>n</span><span>,</span> <span>arma</span><span>::</span><span>vec</span> <span>mu</span><span>,</span> <span>arma</span><span>::</span><span>mat</span> <span>sigma</span><span>)</span> <span>{</span>
   <span>int</span> <span>ncols</span> <span>=</span> <span>sigma</span><span>.</span><span>n_cols</span><span>;</span>
   <span>arma</span><span>::</span><span>mat</span> <span>Y</span> <span>=</span> <span>arma</span><span>::</span><span>randn</span><span>(</span><span>n</span><span>,</span> <span>ncols</span><span>);</span>
   <span>return</span> <span>arma</span><span>::</span><span>repmat</span><span>(</span><span>mu</span><span>,</span> <span>1</span><span>,</span> <span>n</span><span>).</span><span>t</span><span>()</span> <span>+</span> <span>Y</span> <span>*</span> <span>arma</span><span>::</span><span>chol</span><span>(</span><span>sigma</span><span>);</span>
<span>}</span>
The easiest way to perform a ...
[Read more...]

High Resolution Figures in R

March 12, 2013 | Daniel Hocking

As I was recently preparing a manuscript for PLOS ONE, I realized the default resolution of R and RStudio images are insufficient for publication. PLOS ONE requires 300 ppi images in TIFF or EPS (encapsulated postscript) format. In R plots … Continue reading → [Read more...]

R 101

March 11, 2013 | Phil

as.character() is your friendas.character() is your friend Sometimes when you open a data file (lets say a .csv), variables will be recognized as factor whereas it should be numeric. It is therefore tempting to simply convert the variable to numeric using as.numeric(). Big mistake! If you use ... [Read more...]

Interview with Boulder BI Brain Trust

March 11, 2013 | David Smith

On Friday I traveled to Boulder, CO to update the Boulder BI Brain Trust on the latest news and updates from Revolution R Enterprise. While I was there, I was interviewed by BBBT president Claudia Imhoff. In a wide-ranging chat, we discussed: What's behind the Revolution Analytics momentum over the ... [Read more...]

Simulating Allele Counts in a population using R

March 11, 2013 | Ram

This post is inspired by the Week 7 lectures of the Coursera course "Introduction to Genetics and Evolution" (I highly recommend this course for anyone interested in genetics, BTW.) Professor Noor uses a Univ Washington software called AlleleA1 for try... [Read more...]
1 7 8 9 10 11 14

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)