February 2012

weird [lack of] control…

February 20, 2012 | xi'an

When I ran I was expecting the same output as So this means that the dummy index in R “for” loops cannot be tweaked that easily. I seem to remember doing this kind of (dirty) tricks with earlier versions… Now, Alessandra and Robin think this is a good thing that ... [Read more...]

GUI building in R: gWidgets vs Deducer

February 20, 2012 | richierocks

I’ve been a user (and fan) of gWidgets for a couple of years now for GUI building in R. (See my introduction to it here.) However, it’s always good to check out the competition so I’ve been playing around with Deducer to see how they compare. R ... [Read more...]

New R User Group at Berkeley

February 20, 2012 | David Smith

There's a new R user group in Berkely, CA: The Berkeley R Language Beginner Study Group. Join this small group for a step-by-step approach to learn the language R. Each session will be filled with examples and participants are welcome to suggest and present topics. If you have just started ... [Read more...]

Simplifying spatial polygons in R

February 20, 2012 | geotheory.org

Polygon simplification is something others have written about, using R packages such as shapefiles. This explores how package ‘rgeos’ uses the Ramer–Douglas–Peucker algorithm, a method commonly used in GIS systems for simplifying shapefiles. It works by imposing a deviation tolerance … Continue reading → [Read more...]

What does ‘passive investing’ really mean?

February 20, 2012 | Pat

We know the words but what do they mean? Some definitions Here are some definitions of “passive investment management”. Investopedia says: A style of management associated with mutual and exchange-traded funds (ETF) where a fund’s portfolio mirrors a market index. Wikipedia says: Passive management (also called passive investing) is ... [Read more...]

Multiple progress bars

February 20, 2012 | jean-robert.github.com

It is pretty easy to monitor the progress of a long loop in R using the original txtProgressBar function in the utils package. It works like this:
mypb <span><-</span> txtProgressBar<span>()</span>
m <span><-</span> sapply<span>(</span><span>1</span><span>:</span><span>1000</span><span>,</span> <span>function</span><span>(</span>x<span>)</span> <span>{</span>
  setTxtProgressBar<span>(</span>mypb<span>,</span> x<span>/</span><span>1000</span><span>)</span>
  mean<span>(</span>rnorm<span>(</span>x<span>))</span>
<span>})</span>
close<span>(</span>mypb<span>)</span>
You could even get a GUI-type output using tkProgressBar from the tcltk package, or winProgressBar. Or you could build your own. The ... [Read more...]

Reading huge files into R

February 19, 2012 | Ari F.

SAS is much touted for its ability to read in huge datasets, and rightly so. However, that ability comes at a cost: for smaller datasets, since files remain on the disk rather than in memory (as is the case with Stata and R), it is potentially less fa... [Read more...]

Cross validated question

February 19, 2012 | xi'an

Another problem generated by X’validated (on which I spent much too much time!): given an unbiased coin that produced M heads in the first M tosses, what is the expected number of additional tosses needed to get N (N__M) consecutive heads? Consider the preliminary question of getting a ... [Read more...]

Live Rolling Correlation Plot

February 19, 2012 | Eran

Open source is amazing! I cannot even start to imagine the amount of work invested in R, in firefox browser (Mozilla), or Rstudio IDE, all of which are used extensively around the globe, free. Not free as in: free sample … Continue reading → [Read more...]
1 3 4 5 6 7 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)