Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Finally, after a long wait, the R packages googlePublicData (more than 2 years since the last update!) and ABCoptim (roughly a year since the last update) have new versions on CRAN.

The first just got an update that fixed some nasty bugs that were evident once you upload the data to Google Public Data Explorer, and some other new internal stuff making the code nicer and easier to maintain. The later also got some small updates, a couple of new parameters matching optim, and new methods for printing and plotting the results.

Here is an example of ABCoptim (from the manual)

# Loading the package
library(ABCoptim)

# This function has a minimum at (pi,pi)
fun <- function(x) {
-cos(x[1])*cos(x[2])*exp(-((x[1] - pi)^2 + (x[2] - pi)^2))
}

# Calling the function!
abc_optim(rep(0,2), fun, lb=-10, ub=10, criter=50)
##
##  An object of class -abc_answer- (Artificial Bee Colony Optim.):
##  par:
##     x[1]:  3.141593
##     x[2]:  3.141593
##
##  value:
##           -1.000000
##
##  counts:
##            208

And here an example of what can you get with googlePublicData