Publications by jean-robert.github.com

Initial thanks

21.01.2012

Starting this blog with initial thanks to Josh Suereth from whom I cloned the template of this blog, Tom Preston-Werner who made Jekyll (a static site generator for this blog), Scott Chamberlain who made me aware of it. Related To leave a comment for the author, please follow the link and comment on their blog: jean-robert.github.com. R-blogg...

624 sym

Cluster your Facebook friends

22.01.2012

Last week, I came across two interesting posts by Romain François and Petr Simecek: Crawling Facebook with R, in which Romain explains how to connect to the Facebook Graph API Mining Facebook Data: Most “Liked” Status and Friendship Network, in which Petr use Romain’s function to visualize your friend’s network. As coincidence would ha...

1199 sym 2 img

Multiple progress bars

20.02.2012

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 <- txtProgressBar() m <- sapply(1:1000, function(x) { setTxtProgressBar(mypb, x/1000) mean(rnorm(x)) }) close(mypb) You could even get a GUI-type output using tkProgressBar from the tcltk pa...

877 sym R (806 sym/3 pcs) 4 img

A thermometer in R using Arduino and Java

11.11.2012

A couple of weeks ago, Markus Gesmann demonstrated the feasability of connecting R and Arduino using Processing and Rserve in a nice and simple example. This actually rekindled my interest in Arduino that I hadn’t had time to satisfy… Again I will show a very easy and simple example, but this time, transferring the data between Arduino and R ...

4866 sym R (3734 sym/3 pcs) 2 img

Prime Factorization Visualization with R and Shiny

20.11.2012

Quite a lot of people have had fun recently with prime factorization. It all started on The Math Less Traveled, then various versions of the prime factorization diagrams appeared (here, here, this animated one, etc., they are actually more or less listed here). So I wanted to have fun too and give a try at Shiny since, again, everybody was having...

3228 sym R (4144 sym/2 pcs) 8 img

1 + 1 = 3, the proof in R

01.12.2012

Discussing with some friends the other day, one of them mentioned a supposedly famous quote from Einstein saying that 1 + 1 = 3. Despite my best efforts, Google couldn’t find that particular quote. Anyway, we were trying to understand how could have Einstein come up with that. Our answer was that the proposition “1 + 1 = 3” is true when ”...

1832 sym R (179 sym/4 pcs)

Optimal Meeting Point on the Paris Metro

20.03.2013

tl;dr: Play with the app here When you live in Paris, chances are you are (home or work) very close to a metro station, so when you want to meet with some friends, you usually end up picking another metro station as a meeting point. Yet, finding the optimal place to meet can easily become a complex problem considering the dense network we have. N...

5482 sym R (465 sym/2 pcs)