July 2015

Catalan numbers for triangulations gambler’s ruin binary…

July 27, 2015 | 0 Comments

Catalan numbers for triangulations gambler’s ruin binary trees trees …from the Flajolet/Sedgewick coursera analysis of algorithms in R: catalan % unlist %__% sum } (This is slow above catalan(10) though, so here’s a memoised version. Then if you want to run above catalan(250) you’ll need to adjust options(expressions=5... [Read more...]

Visualization of predictions

July 27, 2015 | 0 Comments

In this post I want to shortly introduce you to the great visualization possibilities of mlr. Within the last months a lot of work has been put into that field. This post is not a tutorial but more a demonstration of how little code you have to write with mlr ...
[Read more...]

Graph-based circle packing

July 27, 2015 | 0 Comments

The previous two posts showed examples of a simple circle packing algorithm using the packcircles package (available from CRAN and GitHub). The algorithm involved iterative pair-repulsion to jiggle the circles until (hopefully) a non-overlapping arrangement emerged. In this post we'll look an alternative approach. An algorithm to find an arrangement ... [Read more...]

Graph-based circle packing

July 27, 2015 | 0 Comments

The previous two posts showed examples of a simple circle packing algorithm using the packcircles package (available from CRAN and GitHub). The algorithm involved iterative pair-repulsion to jiggle the circles until (hopefully) a non-overlapping arrangement emerged. In this post we'll look an alternative approach. An algorithm to find an arrangement ... [Read more...]

Egyptian fractions [Le Monde puzzle #922]

July 27, 2015 | 0 Comments

For its summer edition, Le Monde mathematical puzzle switched to a lighter version with immediate solution. This #922 considers Egyptian fractions which only have distinct denominators (meaning the numerator is always 1) and can be summed. This means 3/4 is represented as ½+¼. Each denominator only appears once. As I discovered when looking on ...
[Read more...]

Hadley Wickham on why he created all those R packages

July 27, 2015 | 0 Comments

Priceonomics published on Friday an in-depth profile of Hadley Wickham, author of many of the most popular R packages including ggplot2, dplyr and devtools. In the article, he reveals that his motivation for creating these packages was primarily to provide better ways of accomplishing routine tasks in R, an immensely ... [Read more...]

Announcing: Mastering RStudio

July 27, 2015 | 0 Comments

Learn the holistic use of RStudio to communicate your R code effectively and persuasively. Max (@nierhoff) and I are both absolute R enthusiasts. We both strongly believe in the power of R for statistical computing. And we are both also fascinated by the nearly endless possibilities of the R programming ... [Read more...]

RBerkeley Was Just Pining For The Fjords

July 27, 2015 | 0 Comments

UPDATE: RBerkeley is now on CRAN If you made it to Chapter 8 of Data-Driven Security after ~October 2014 and tried to run the BerkeleyDB R example, you were greeted with: Warning in install.packages : package ‘RBerkely’ is not available (for R version [YOUR_R_VERSION]) That’s due to the fact ... [Read more...]

RBerkeley Was Just Pining For The Fjords

July 27, 2015 | 0 Comments

If you made it to Chapter 8 of Data-Driven Security after ~October 2014 and tried to run the BerkeleyDB R example, you were greeted with: Warning in install.packages : package ‘RBerkely’ is not available (for R version [YOUR_R_VERSION]) That’s due to the fact that it was removed from CRAN ... [Read more...]

RSoundCloud

July 27, 2015 | 0 Comments

Introduction The RSoundCloud package contains two functions with which to query the SoundCloud API. It further contains one convenience function aimed at helping the user to obtain a client id. This id is necessary to query the API. Package informati... [Read more...]

Evading the “Hadley tax”: Faster Travis tests for R

July 26, 2015 | 0 Comments

Hadley is a popular figure, and rightly so as he successfully introduced many newcomers to the wonders offered by R. His approach strikes some of us old greybeards as wrong---I particularly take exception with some of his writing which frequently portrays a particular approach as both the best and only ... [Read more...]

Installing and Starting SparkR Locally on Windows OS and RStudio

July 26, 2015 | 0 Comments

Introduction With the recent release of Apache Spark 1.4.1 on July 15th, 2015, I wanted to write a step-by-step guide to help new users get up and running with SparkR locally on a Windows machine using command shell and RStudio. SparkR provides an R frontend to Apache Spark and using Spark’s ...
[Read more...]

Making Static/Interactive Voronoi Map Layers In ggplot/leaflet

July 26, 2015 | 0 Comments

Despite having shown various ways to overcome D3 cartographic envy, there are always more examples that can cause the green monster to rear it’s ugly head. Take the Voronoi Arc Map example. For those in need of a primer, a Voronoi tesslation/diagram is: …a partitioning of a plane ...
[Read more...]

RcppZiggurat 0.1.3: Faster Random Normal Draws

July 26, 2015 | 0 Comments

After a slight hiatus since the last release in early 2014, we are delighted to announce a new release of RcppZiggurat which is now on the CRAN network for R. The RcppZiggurat package updates the code for the Ziggurat generator which provides very f... [Read more...]

Where do letters occur in words

July 26, 2015 | 0 Comments

A while back I encountered an interesting graphic showing where letters were located in english words (http://www.prooffreader.com/2014/05/graphing-distribution-of-english.html). The other day I decided to do a similar one for letters in danish words and for this I used R. I downloaded all abstracts from the danish ... [Read more...]

Predicting Titanic deaths on Kaggle II: gbm

July 26, 2015 | 0 Comments

Following my previous post I have decided to try and use a different method: generalized boosted regression models (gbm). I have read the background in Elements of Statistical Learning and arthur charpentier's nice post on it. This data is a nice occasion to get my hands dirty.Data Data as ... [Read more...]

Predicting Titanic deaths on Kaggle II: gbm

July 26, 2015 | 0 Comments

Following my previous post I have decided to try and use a different method: generalized boosted regression models (gbm). I have read the background in Elements of Statistical Learning and arthur charpentier's nice post on it. This data ... [Read more...]
1 2 3 4 5 13

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)