May 2014

Finding the midpoint when creating intervals

May 23, 2014 | nzcoops

Nothing ground breaking here. I was doing some work dividing data into deciles and then creating some plots. I couldn’t find an function to calculate this from cut, and I use cut quite a bit. So here we are. midpoints … Continue reading → [Read more...]

Using mapply in Rcpp11

May 22, 2014 | romain francois

mapply is a well known (or perhaps not) function in R. mapply applies a function to extracts from one or more vectors. For example in R: __ mapply( function(x,y, z) x + y + z, 1:4, 4:1, 2) # [1] 7 7 7 7 Notice how the last argument is recycled as... [Read more...]

Compile times Rcpp11 vs Rcpp

May 22, 2014 | romain francois

So I've been curious about a different kind of performance comparison between Rcpp11 and Rcpp, i.e. I've benchmarked the time it takes to compile the following code (the example you get from RStudio when you do new C++ file) with Rcpp and Rcpp11. #... [Read more...]

Quick History 2: GLMs, R and large data sets

May 22, 2014 | Joseph Rickert

by Joseph Rickert In last week’s post, I sketched out the history of Generalized Linear Models and their implementations. In this post I’ll attempt to outline how GLM functions evolved in R to handle large data sets. The first function to make it possible to build GLM models ... [Read more...]

Extending wrap with Rcpp11

May 22, 2014 | romain francois

Context Extending wrap to custom classes has always been a struggle in Rcpp, and led to the split between RcppCommon.h and Rcpp.h, the idea being that you load a "minimal" subset of Rcpp, declare your class, declare that you are going to provide a s... [Read more...]

The need for documenting functions

May 22, 2014 | Abhijit

My current work usually requires me to work on a project until we can submit a research paper, and then move on to a new project. However, 3-6 months down the road, when the reviews for the paper return, it is quite common to have to do some new analyses ... [Read more...]

OpenCPU Gem for Ruby

May 22, 2014 | Jeroen Ooms

The guys from roqua.nl are working on a OpenCPU wrapper Gem. This simple API client provides a pretty nice basis for building R web applications with Ruby. A minimal example from the readme:
<span>client</span><span>.</span><span>execute</span> <span>:digest</span><span>,</span> <span>:hmac</span><span>,</span> <span>{</span> <span>key</span><span>:</span> <span>'foo'</span><span>,</span> <span>object</span><span>:</span> <span>'bar'</span><span>,</span> <span>algo</span><span>:</span> <span>'md5'</span> <span>}</span>
<span># => ['0c7a250281315ab863549f66cd8a3a53']</span>
Which performs the following JSON RPC request:
digest<span>::</span>hmac<span>(</span>key<span>=</span><span>"foo"</span><span>,</span> object<span>=</span><span>"bar"</span><span>,</span> algo<span>=</span><span>"md5"</span><span>)</span>
They are accepting pull requests!
[Read more...]

R and Python Meetups, Philippines

May 21, 2014 | Al-Ahmadgaid Asaad

There will be upcoming meetups for R User Group Philippines and Python Philippines (PythonPH) Community. Below are the details:R Meetuptopic: R for SAS users, and planning of RUG activities venue: 9/F Sun Life Centre, 5th Avenue corner Rizal Drive... [Read more...]

The Birthday Simulation

May 21, 2014 | Wesley

Nothing novel or unique about this problem.  This just extends the problem to measure the probability to three or more people sharing the same birthday using simulation approaches. For two people it’s fairly straight forward and with a group of about 22 people the probability that two people share the ... [Read more...]

estimation of deformations of densities

May 21, 2014 | xi'an

Today, Jean-Michel Loubes from Toulouse gave a seminar in Dauphine on the estimation of deformations using Wassertsein distances. This is functional data analysis, where samples from random transforms of the original density are observed towards estimating the baseline (or true) measure As a neophyte, I found the problem of interest ... [Read more...]

Crowdsourced Season 6 Drag Race predictions

May 21, 2014 | Alex

With Season 6 of RuPaul’s Drag Race in the books and the new queen crowned, it’s time to reflect on how our pre-season forecasts did. In February I posted a wiki survey asking who would win this season before the first episode had aired. I posted this to reddit’... [Read more...]

Microsoft uses R for Xbox matchmaking

May 21, 2014 | David Smith

If you've ever played online multiplayer games like Halo on the Xbox console, you'll know that being matched up with the right teammates and opponents is a critical part of the experience. Getting matched with an opponent that's way above your skill level isn't just demoralizing for you; it's also ... [Read more...]

R scripts

May 21, 2014 | thiagogm

Here goes a little bit of my late experiences with R scripts. Comments, suggestions and/or opinions are welcome. Usefulness of R scripts Basic R script Processing command-line arguments Verbose mode and stderr stdin in a non-interactive mode Usefulness of R scripts Besides being an amazing interactive tool for data ... [Read more...]
1 2 3 4 5 6 12

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)