January 2014

Introduction to parallel computing in R

January 31, 2014 | Kun Ren

For R beginners, for loop is an elementary flow-control device that simplifies repeatedly calling functions with different parameters. A possible block of code is like this:
run <span><-</span> <span>function</span><span>(</span>i<span>)</span> <span>{</span>
  <span>return</span><span>((</span>i<span>+1</span><span>)</span><span>/</span><span>(</span>i<span>^</span><span>2+1</span><span>))</span>
<span>}</span>
<span>for</span><span>(</span>i <span>in</span> <span>1</span><span>:</span><span>100</span><span>)</span> <span>{</span>
  run<span>(</span>i<span>)</span>
<span>}</span>
In this code, we first define a function that calculates something, and then run the function from i = 1 to i = 100. This can be ... [Read more...]

Stick Figure Function Fun – R

January 31, 2014 | Francis Smart

I have created a stick figure generating function for the purposes of adding a human figure as a demonstration of scale to some of my graphs as well as potentially emoticons to my shiny/concerto applications.You can change basic graphing parameters li... [Read more...]

ShareLaTeX now supports knitr

January 31, 2014 | Marek Gągolewski

ShareLaTeX (click here to register a free account) is a wonderful and reliable on-line editor for writing and compiling LaTeX documents “in the cloud” as well as working together in real-time (imagine Google Docs supporting LaTeX =__ you get ShareLaTeX).…Read more › [Read more...]

R editor improvements for Bio7

January 31, 2014 | » R

30.01.2014 For the next release of Bio7 based on Eclipse 4.4 an improvement of the R editor for a much better editing experience of R scripts will be available. The integrated editor itself is built bottom-up (based upon an Eclipse editor editor template) although there a great editor frameworks (DLTK) or frameworks ... [Read more...]

State of the Union Speech Comparison

January 30, 2014 | jlebeau

The State of the Union is historically a speech used to set the tone for the year...at least I think that's what it is.  The process of writing these speeches has been discussed before and first-hand detail is available in this article. &nbsp... [Read more...]

Automatic time series forecasting in Granada

January 30, 2014 | Rob J Hyndman

In two weeks I am presenting a workshop at the University of Granada (Spain) on Automatic Time Series Forecasting. Unlike most of my talks, this is not intended to be primarily about my own research. Rather it is to provide a state-of-the-art overview of the topic (at a level suitable ... [Read more...]

The Meta- State of the Union 2014

January 30, 2014 | The Clerk

Max Ghenis has a nice text analysis of Martin Luther King Jr.'s famous "I Have a Dream" speech. You can read about his methodology here:  Statistics meets rhetoric: A text analysis of "I Have a Dream" in R.This got me wondering about the President Obama's 2014 State of the ... [Read more...]

More SOTU Scaling

January 30, 2014 | Will

A couple of days ago the Monkey Cage featured Ben Lauderdale’s one-dimensional scaling model of US State of the Union addresses. In this post, I replicate the analysis with a closely related model, ask what the scaled dimension actually means, and consider what things would look like if we ... [Read more...]

Inference for ARMA(p,q) Time Series

January 30, 2014 | arthur charpentier

As we mentioned in our previous post, as soon as we have a moving average part, inference becomes more complicated. Again, to illustrate, we do not need a two general model. Consider, here, some  process, where  is some white noise, and assume further that . __ theta=.7 __ phi=.5 __ n=1000 __ Z=rep(0,n) __ ... [Read more...]

Parallelizing #RStats using #make

January 30, 2014 | Pierre Lindenbaum

In the current post, I'll show how to use R as the main SHELL of GNU-Make instead of using a classical linux shell like 'bash'. Why would you do this ? awesomeness Make-based workflow management Make-based execution with --jobs. GNU make knows how to ... [Read more...]

A First Look at rxDForest()

January 30, 2014 | Joseph Rickert

by Joseph RIckert Last July, I blogged about rxDTree() the RevoScaleR function for building classification and regression trees on very large data sets. As I explaned then, this function is an implementation of the algorithm introduced by Ben-Haim and Yom-Tov in their 2010 paper that builds trees on histograms of data ... [Read more...]

dplyr 0.1.1

January 30, 2014 | hadleywickham

We’re pleased to announce a new minor version of dplyr. This fixes a few bugs that crashed R, adds a few minor new features (like a sort argument to tally()), and uses shallow copying in a few more places. There is one backward incompatible change: explain_tbl() has been ... [Read more...]

roxygen2 3.1.0

January 30, 2014 | hadleywickham

We’re pleased to announce a new version of roxygen2. The biggest news is that roxygen2 now recognises reference class method docstrings and will automatically add them to the documentation. 3.1.0 also offers a number of minor improvements and bug fixes, as listed on the github release notice. As always, you ... [Read more...]

GMT topography colours (I)

January 30, 2014 | Dan Kelley Blog/R

I enjoyed the blog posting by “me nugget”, which I ran across on R-bloggers, and so I decided to try that author’s GMT colourscheme. This revealed some intriguing patterns in the Oce dataset named topoWorld. The following code produces a graph to illustrate. 1. Set up colours as suggested on ... [Read more...]

GMT topography colours (II)

January 30, 2014 | Dan Kelley Blog/R

This follows an item about GMT colours. In the meantime I have found a website illustrating the colours, and also the definition files for those palettes. The palette in question is named GMT_relief, and it is defined in a file that is as follows.
<span>#	$Id: GMT_relief.cpt,v 1.1 2001/09/23 23:11:20 pwessel Exp $</span>
<span>#</span>
<span># Colortable for whole earth relief used in Wessel topomaps</span>
<span># Designed by P. Wessel and F. Martinez, SOEST</span>
<span># COLOR_MODEL = RGB</span>
-8000	0	0	0	-7000	0	5	25
-7000	0	5	25	-6000	0	10	50
-6000	0	10	50	-5000	0	80	125
-5000	0	80	125	-4000	0	150	200
-4000	0	150	200	-3000	86	197	184
-3000	86	197	184	-2000	172	245	168
-2000	172	245	168	-1000	211	250	211
-1000	211	250	211	0	250	255	255
0	70	120	50	500	120	100	50
500	120	100	50	1000	146	126	60
1000	146	126	60	2000	198	178	80
2000	198	178	80	3000	250	230	100
3000	250	230	100	4000	250	234	126
4000	250	234	126	5000	252	238	152
5000	252	238	152	6000	252	243	177
6000	252	243	177	7000	253	249	216
7000	253	249	216	8000	255	255	255
F	255	255	255				
B	0	0	0
N	255	255	255
R code to read ... [Read more...]
1 2 3 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)