Visualizing car brand choices in ggplot2
(This article was first published on R snippets, and kindly contributed to R-bloggers) I always like to read new posts at chartsnthings as they always inspire me with new ideas for data visualization....
View ArticleYou should not use split in production code
(This article was first published on R snippets, and kindly contributed to R-bloggers) Recently I have stumbled on a problem with split function applied on list of factors. The issue is that it might...
View ArticleOptimal sorting using rpart
(This article was first published on R snippets, and kindly contributed to R-bloggers) Some time ago I read a nice post Solving easy problems the hard way where linear regression is used to solve an...
View ArticleSolving mastermind with R
(This article was first published on R snippets, and kindly contributed to R-bloggers) In my last post I have shown a solution to classical sorting problem in R. So I thought that this time it would...
View ArticleEmulating dynamic scoping in GNU R
(This article was first published on R snippets, and kindly contributed to R-bloggers) By design GNU R uses lexical scoping. Fortunately it allows for at least two ways to simulate dynamic scoping.Let...
View ArticleChanging function scope in GNU R example
(This article was first published on R snippets, and kindly contributed to R-bloggers) In my last post I have discussed how to work around GNU R scoping rules using environment function. This time let...
View ArticleAnimation basics for a vacation
(This article was first published on R snippets, and kindly contributed to R-bloggers) Since I have a vacation this time I decided to implement some entertaining graphics. I have chosen to animate a...
View ArticleAn example of OOP in GNU R using S4 Classes
(This article was first published on R snippets, and kindly contributed to R-bloggers) Recently I have discussed with my friend from WLOG Solutions an implementation of banking cash management engine...
View ArticleExporting ctree object to Asymptote
(This article was first published on R snippets, and kindly contributed to R-bloggers) When producing regression or classification trees (standard rpart or ctree from party package) in GNU R I am...
View ArticleSimulation metamodeling with GNU R
(This article was first published on R snippets, and kindly contributed to R-bloggers) I am one of the organizers of ESSA2013 conference that will take place in September 2013 in Warsaw, Poland. The...
View ArticleSimulation metamodeling with constraints
(This article was first published on R snippets, and kindly contributed to R-bloggers) Last week I have posted about using simulation metamodeling to verify results of analytical solution of the...
View ArticlePlotting Watts-Strogatz model
(This article was first published on R snippets, and kindly contributed to R-bloggers) Recently I wanted to reproduce Figure 2 from Watts and Strogatz (1998). The task using igraph is simple but an...
View ArticleSimple Bayesian bootstrap
(This article was first published on R snippets, and kindly contributed to R-bloggers) Bootstrapping is a very popular statistical technique. However, its Bayesian analogue proposed by Rubin (1981) is...
View ArticlePossible error in Bayesian bootstrap
(This article was first published on R snippets, and kindly contributed to R-bloggers) After my last post on Bayesian bootstrap I got a question why the sample from Dirichlet distribution is taken as...
View ArticleESSA2013 Conference
(This article was first published on R snippets, and kindly contributed to R-bloggers) It has been just announced that during ESSA2013 conference I am planning to organize a special track on...
View ArticleBridge hand distribution: simulation vs exact calculation
(This article was first published on R snippets, and kindly contributed to R-bloggers) Recently I played bridge with my friends. Being frustrated with several consecutive poor hand distributions we...
View ArticlePredictive models in R: a new book in Polish
(This article was first published on R snippets, and kindly contributed to R-bloggers) Together with Mateusz Zawisza I have just published a new book in Polish on building predictive models in GNU R....
View ArticleWrapper functions in GNU R
(This article was first published on R snippets, and kindly contributed to R-bloggers) Recently I have been working with GNU R optimization routines a lot. Function optim has a nice trace option that...
View ArticleSolving 9-puzzle with GNU R
(This article was first published on R snippets, and kindly contributed to R-bloggers) During holiday break I have decided to solve 9-puzzle, which is 3x3 variant of a well known 15-puzzle. The...
View ArticleTimes per second benchmark
(This article was first published on R snippets, and kindly contributed to R-bloggers) In GNU R the simplest way to measure execution time of a piece code is to use system.time. However, sometimes I...
View Article